Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Unreleased

- Loki logs gain a `component` label (`coderd`, `provisioner`, `workspace`) derived from `global.coder.coderdSelector`, `provisionerdSelector` and `workspacesSelector`. Coder log parsing (`level`, `logger`, multi-line joins) now applies to the pods those selectors match instead of every pod named `coder*`; if your pods don't match the selectors, set them.
- New optional `cloudwatch-exporter` subchart (yet-another-cloudwatch-exporter, off by default) brings CloudWatch metrics for RDS into Prometheus as `aws_rds_*`. Give its service account an IRSA role annotation, or associate the `cloudwatch-exporter` service account with an IAM role through EKS Pod Identity; the role needs `cloudwatch:GetMetricData`, `GetMetricStatistics`, `ListMetrics` and `tag:GetResources`.
- New optional `cloudwatch-exporter` subchart (yet-another-cloudwatch-exporter, off by default) brings CloudWatch metrics for RDS, load balancers (ALB, NLB), NAT gateways and EBS volumes into Prometheus as `aws_<service>_<metric>_<statistic>` series. Give its service account an IRSA role annotation, or associate the `cloudwatch-exporter` service account with an IAM role through EKS Pod Identity; the role needs `cloudwatch:GetMetricData`, `GetMetricStatistics`, `ListMetrics` and `tag:GetResources`.
- BREAKING: replaces the `grafana-agent` subchart with Grafana Alloy (`alloy` chart 1.13.1). Rename any `grafana-agent:` values overrides to `alloy:`.
- Pod `job` label changes from `<ns>/grafana-agent/grafana-agent` to `<ns>/alloy/alloy`; update queries and alerts that match the old label.
- Alloy listens on port 12345 instead of 80.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ values which are defined [here](https://github.com/grafana/helm-charts/tree/main
| alloy.rbac.rules[0].verbs[1] | string | `"list"` | |
| alloy.rbac.rules[0].verbs[2] | string | `"watch"` | |
| alloy.withOTLPReceiver | bool | `false` | |
| cloudwatch-exporter | object | `{"config":"apiVersion: v1alpha1\nsts-region: us-east-1\ndiscovery:\n jobs:\n - type: AWS/RDS\n regions: [us-east-1]\n period: 60\n length: 300\n metrics:\n - {name: CPUUtilization, statistics: [Average]}\n - {name: DatabaseConnections, statistics: [Average]}\n - {name: FreeableMemory, statistics: [Average]}\n - {name: FreeStorageSpace, statistics: [Average]}\n - {name: ReadLatency, statistics: [Average]}\n - {name: WriteLatency, statistics: [Average]}\n - {name: DiskQueueDepth, statistics: [Average]}\n - {name: ReplicaLag, statistics: [Average]}\n - {name: BurstBalance, statistics: [Average]}","enabled":false,"fullnameOverride":"cloudwatch-exporter","podAnnotations":{"prometheus.io/port":"5000","prometheus.io/scrape":"true"},"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"64Mi"}},"serviceAccount":{"annotations":{},"create":true,"name":"cloudwatch-exporter"},"testConnection":false}` | yet-another-cloudwatch-exporter (YACE) brings AWS CloudWatch metrics into Prometheus, starting with RDS (CPU, memory, storage, connections, latency, disk queue). Off by default. AWS access: set `serviceAccount.annotations` to your IRSA role ARN, or associate the `cloudwatch-exporter` service account with a role through EKS Pod Identity (no annotation needed). The role needs cloudwatch:GetMetricData, GetMetricStatistics, ListMetrics and tag:GetResources (none support resource-level scoping). Set `sts-region` and each job's `regions` in `config` to your region; overriding `config` replaces this whole block. |
| cloudwatch-exporter | object | `{"config":"apiVersion: v1alpha1\nsts-region: us-east-1\ndiscovery:\n jobs:\n - type: AWS/RDS\n regions: [us-east-1]\n period: 60\n length: 300\n metrics:\n - {name: CPUUtilization, statistics: [Average]}\n - {name: DatabaseConnections, statistics: [Average]}\n - {name: FreeableMemory, statistics: [Average]}\n - {name: FreeStorageSpace, statistics: [Average]}\n - {name: ReadLatency, statistics: [Average]}\n - {name: WriteLatency, statistics: [Average]}\n - {name: DiskQueueDepth, statistics: [Average]}\n - {name: ReplicaLag, statistics: [Average]}\n - {name: BurstBalance, statistics: [Average]}\n - type: AWS/ApplicationELB\n regions: [us-east-1]\n period: 60\n length: 300\n metrics:\n - {name: RequestCount, statistics: [Sum]}\n - {name: HTTPCode_Target_5XX_Count, statistics: [Sum]}\n - {name: TargetResponseTime, statistics: [p95]}\n - type: AWS/NetworkELB\n regions: [us-east-1]\n period: 60\n length: 300\n metrics:\n - {name: UnHealthyHostCount, statistics: [Average]}\n - type: AWS/NATGateway\n regions: [us-east-1]\n period: 60\n length: 300\n metrics:\n - {name: ErrorPortAllocation, statistics: [Sum]}\n - {name: ConnectionAttemptCount, statistics: [Sum]}\n - type: AWS/EBS\n regions: [us-east-1]\n period: 300\n length: 900\n metrics:\n - {name: VolumeQueueLength, statistics: [Average]}","enabled":false,"fullnameOverride":"cloudwatch-exporter","podAnnotations":{"prometheus.io/port":"5000","prometheus.io/scrape":"true"},"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"50m","memory":"64Mi"}},"serviceAccount":{"annotations":{},"create":true,"name":"cloudwatch-exporter"},"testConnection":false}` | yet-another-cloudwatch-exporter (YACE) brings AWS CloudWatch metrics into Prometheus: RDS, load balancers (ALB, NLB), NAT gateways and EBS volumes. Off by default. AWS access: set `serviceAccount.annotations` to your IRSA role ARN, or associate the `cloudwatch-exporter` service account with a role through EKS Pod Identity (no annotation needed). The role needs cloudwatch:GetMetricData, GetMetricStatistics, ListMetrics and tag:GetResources (none support resource-level scoping). Set `sts-region` and each job's `regions` in `config` to your region; overriding `config` replaces this whole block. |
| global.alerts.enabled | bool | `true` | enable or disable alerting |
| global.alerts.kind | string | `"configmap"` | the container resource kind in which alerts should be created; valid values are "prometheusrule" or "configmap" |
| global.coder.alerts | object | `{"coderd":{"groups":{"CPU":{"delay":"10m","enabled":true,"period":"10m","thresholds":{"critical":0.9,"warning":0.8}},"IneligiblePrebuilds":{"delay":"10m","enabled":true,"thresholds":{"notify":1}},"Memory":{"delay":"10m","enabled":true,"thresholds":{"critical":0.9,"warning":0.8}},"Replicas":{"delay":"5m","enabled":true,"thresholds":{"critical":1,"notify":3,"warning":2}},"Restarts":{"delay":"1m","enabled":true,"period":"10m","thresholds":{"critical":3,"notify":1,"warning":2}},"UnprovisionedPrebuiltWorkspaces":{"delay":"10m","enabled":true,"thresholds":{"warn":1}},"WorkspaceBuildFailures":{"delay":"10m","enabled":true,"period":"10m","thresholds":{"critical":10,"notify":2,"warning":5}}}},"enterprise":{"groups":{"Licences":{"delay":"1m","enabled":true,"thresholds":{"critical":1,"warning":0.9}}}},"provisionerd":{"groups":{"Replicas":{"delay":"5m","enabled":true,"thresholds":{"critical":1,"notify":3,"warning":2}}}}}` | alerts for the various aspects of Coder |
Expand Down
31 changes: 29 additions & 2 deletions coder-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ prometheus-node-exporter:
containerSecurityContext:
allowPrivilegeEscalation: false

# cloudwatch-exporter -- yet-another-cloudwatch-exporter (YACE) brings AWS CloudWatch metrics into Prometheus, starting
# with RDS (CPU, memory, storage, connections, latency, disk queue). Off by default.
# cloudwatch-exporter -- yet-another-cloudwatch-exporter (YACE) brings AWS CloudWatch metrics into Prometheus: RDS, load
# balancers (ALB, NLB), NAT gateways and EBS volumes. Off by default.
# AWS access: set `serviceAccount.annotations` to your IRSA role ARN, or associate the `cloudwatch-exporter` service account
# with a role through EKS Pod Identity (no annotation needed). The role needs cloudwatch:GetMetricData, GetMetricStatistics,
# ListMetrics and tag:GetResources (none support resource-level scoping).
Expand Down Expand Up @@ -692,6 +692,33 @@ cloudwatch-exporter:
- {name: DiskQueueDepth, statistics: [Average]}
- {name: ReplicaLag, statistics: [Average]}
- {name: BurstBalance, statistics: [Average]}
- type: AWS/ApplicationELB
regions: [us-east-1]
period: 60
length: 300
metrics:
- {name: RequestCount, statistics: [Sum]}
- {name: HTTPCode_Target_5XX_Count, statistics: [Sum]}
- {name: TargetResponseTime, statistics: [p95]}
- type: AWS/NetworkELB
regions: [us-east-1]
period: 60
length: 300
metrics:
- {name: UnHealthyHostCount, statistics: [Average]}
- type: AWS/NATGateway
regions: [us-east-1]
period: 60
length: 300
metrics:
- {name: ErrorPortAllocation, statistics: [Sum]}
- {name: ConnectionAttemptCount, statistics: [Sum]}
- type: AWS/EBS
regions: [us-east-1]
period: 300
length: 900
metrics:
- {name: VolumeQueueLength, statistics: [Average]}

pyroscope:
enabled: false
Expand Down
Loading