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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- New `alloy.kubeletTLS` configures TLS for the cAdvisor and kubelet scrapes. The defaults (`insecure_skip_verify: true`) match the previous behaviour; set `insecure_skip_verify: false` and `ca_file` to verify the kubelet certificate.
- Alloy `ClusterRole` is narrowed to `pods`, `nodes` and `nodes/metrics`. It no longer grants read access to `secrets` and `configmaps`. If you add components through `alloy.extraBlocks` that need more access, override `alloy.rbac.rules` and `alloy.rbac.clusterRules`.
- `node_uname_info` carries the Kubernetes node name in its `nodename` label instead of the OS hostname, so dashboards that match it against `kube_node_info`'s `node` work when nodes are named by instance ID.
- BREAKING: `kube-state-metrics` and `prometheus-node-exporter` are now top-level subcharts instead of dependencies of the `prometheus` subchart, so they can run without the Prometheus server. Move any overrides from `prometheus.kube-state-metrics:` and `prometheus.prometheus-node-exporter:` to top-level `kube-state-metrics:` and `prometheus-node-exporter:`. With default values the rendered manifests are unchanged. The chart now fails to render if an old-style override is still set under `prometheus.`, instead of silently ignoring it. `prometheus-node-exporter` is pinned to 4.56.1 and no longer follows the `prometheus` chart's version; bump it by hand.

## v0.3.0

Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ If you switch from classic to native histograms, dashboards may need to account
| https://grafana.github.io/helm-charts | loki | ~v6.7.3 |
| https://grafana.github.io/helm-charts | pyroscope | ~v1.14.1 |
| https://grafana.github.io/helm-charts | tempo | ~v1.23.0 |
| https://prometheus-community.github.io/helm-charts | kube-state-metrics | 8.0.* |
| https://prometheus-community.github.io/helm-charts | prometheus | ~v29.20.1 |
| https://prometheus-community.github.io/helm-charts | prometheus-node-exporter | 4.56.1 |

Each subchart can be disabled by setting the `enabled` field to `false`.

Expand Down Expand Up @@ -515,6 +517,9 @@ values which are defined [here](https://github.com/grafana/helm-charts/tree/main
| grafana.sidecar.dashboards.provider.disableDelete | bool | `true` | |
| grafana.testFramework.enabled | bool | `false` | |
| grafana.useStatefulSet | bool | `true` | |
| kube-state-metrics.enabled | bool | `true` | |
| kube-state-metrics.fullnameOverride | string | `"kube-state-metrics"` | |
| kube-state-metrics.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
| loki.backend.extraArgs[0] | string | `"-log.level=debug"` | |
| loki.backend.extraVolumeMounts[0].mountPath | string | `"/var/loki-ruler-wal"` | |
| loki.backend.extraVolumeMounts[0].name | string | `"ruler-wal"` | |
Expand Down Expand Up @@ -572,6 +577,11 @@ values which are defined [here](https://github.com/grafana/helm-charts/tree/main
| loki.write.extraArgs[0] | string | `"-log.level=debug"` | |
| loki.write.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
| loki.write.replicas | int | `1` | |
| prometheus-node-exporter.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
| prometheus-node-exporter.enabled | bool | `true` | |
| prometheus-node-exporter.fullnameOverride | string | `"node-exporter"` | |
| prometheus-node-exporter.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
| prometheus-node-exporter.rbac.pspEnabled | bool | `false` | |
| prometheus.alertmanager.enabled | bool | `true` | |
| prometheus.alertmanager.fullnameOverride | string | `"alertmanager"` | |
| prometheus.alertmanager.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
Expand All @@ -585,12 +595,8 @@ values which are defined [here](https://github.com/grafana/helm-charts/tree/main
| prometheus.configmapReload.prometheus.extraConfigmapMounts[0].optional | bool | `true` | |
| prometheus.configmapReload.prometheus.extraConfigmapMounts[0].readonly | bool | `true` | |
| prometheus.enabled | bool | `true` | |
| prometheus.kube-state-metrics.enabled | bool | `true` | |
| prometheus.kube-state-metrics.fullnameOverride | string | `"kube-state-metrics"` | |
| prometheus.kube-state-metrics.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
| prometheus.prometheus-node-exporter.enabled | bool | `true` | |
| prometheus.prometheus-node-exporter.fullnameOverride | string | `"node-exporter"` | |
| prometheus.prometheus-node-exporter.podAnnotations."prometheus.io/scrape" | string | `"true"` | |
| prometheus.kube-state-metrics.enabled | bool | `false` | |
| prometheus.prometheus-node-exporter.enabled | bool | `false` | |
| prometheus.prometheus-pushgateway.enabled | bool | `false` | |
| prometheus.scrapeConfigs.kubernetes-api-servers.enabled | bool | `false` | |
| prometheus.scrapeConfigs.kubernetes-nodes-cadvisor.enabled | bool | `false` | |
Expand Down
10 changes: 8 additions & 2 deletions coder-observability/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ dependencies:
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 29.20.1
- name: kube-state-metrics
repository: https://prometheus-community.github.io/helm-charts
version: 8.0.0
- name: prometheus-node-exporter
repository: https://prometheus-community.github.io/helm-charts
version: 4.56.1
- name: loki
repository: https://grafana.github.io/helm-charts
version: 6.7.4
Expand All @@ -17,5 +23,5 @@ dependencies:
- name: alloy
repository: https://grafana.github.io/helm-charts
version: 1.13.1
digest: sha256:b82a2d8f356c6fd7acc6b864ccecf3a60ee233686d57693144419c79a648416a
generated: "2026-11-06T10:46:18.84376-05:00"
digest: sha256:74fb46fc23472a8879c3138bfe31568c9ee116d8de9d3ffcd4c14fa60d89f9fb
generated: "2026-11-06T18:34:41.684215818Z"
9 changes: 9 additions & 0 deletions coder-observability/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ dependencies:
condition: prometheus.enabled
repository: https://prometheus-community.github.io/helm-charts
version: '~v29.20.1'
- name: kube-state-metrics
condition: kube-state-metrics.enabled
repository: https://prometheus-community.github.io/helm-charts
version: '8.0.*'
- name: prometheus-node-exporter
condition: prometheus-node-exporter.enabled
repository: https://prometheus-community.github.io/helm-charts
# Pinned exactly: 4.56.3+ changes the default flags. These no longer follow the prometheus chart, so bump by hand.
version: '4.56.1'
- name: loki
condition: loki.enabled
repository: https://grafana.github.io/helm-charts
Expand Down
15 changes: 15 additions & 0 deletions coder-observability/templates/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- /*
kube-state-metrics and prometheus-node-exporter are top-level subcharts. Overrides left under `prometheus.` would
silently stop applying, so fail instead. `enabled`, `rbac` and `containerSecurityContext` are allowed because the
prometheus chart's own defaults populate them.
*/ -}}
{{- range $name := list "kube-state-metrics" "prometheus-node-exporter" }}
{{- if (index $.Values.prometheus $name).enabled }}
{{- fail (printf "prometheus.%s.enabled cannot be true any more: %s is a top-level subchart now, so configure it under %s and leave the nested copy disabled" $name $name $name) }}
{{- end }}
{{- range $key, $_ := (index $.Values.prometheus $name) }}
{{- if not (has $key (list "enabled" "rbac" "containerSecurityContext")) }}
Comment thread
droopy4096 marked this conversation as resolved.
Resolved
{{- fail (printf "prometheus.%s.%s is no longer used: kube-state-metrics and prometheus-node-exporter are top-level subcharts now; move it to %s.%s" $name $key $name $key) }}
{{- end }}
{{- end }}
{{- end }}
30 changes: 22 additions & 8 deletions coder-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,21 +619,35 @@ prometheus:
port: 80
podAnnotations:
prometheus.io/scrape: "true"
# kube-state-metrics and node-exporter are top-level dependencies below, so they can run without
# the Prometheus server (e.g. when the collector writes to a Prometheus elsewhere). The prometheus chart's
# own copies stay disabled.
kube-state-metrics:
fullnameOverride: kube-state-metrics
enabled: true
podAnnotations:
prometheus.io/scrape: "true"
enabled: false
prometheus-node-exporter:
fullnameOverride: node-exporter
enabled: true
podAnnotations:
prometheus.io/scrape: "true"
enabled: false

# Disable push gateway
prometheus-pushgateway:
enabled: false

kube-state-metrics:
fullnameOverride: kube-state-metrics
enabled: true
podAnnotations:
prometheus.io/scrape: "true"

prometheus-node-exporter:
fullnameOverride: node-exporter
enabled: true
podAnnotations:
prometheus.io/scrape: "true"
# Carried over from the prometheus chart's defaults, which no longer apply to this copy.
rbac:
pspEnabled: false
containerSecurityContext:
allowPrivilegeEscalation: false

pyroscope:
enabled: false
alloy:
Expand Down
Loading
Loading