You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And open your web browser to http://localhost:9090/graph.
227
+
228
+
#### Native Histograms
229
+
230
+
Native histograms are an **experimental** Prometheus feature that remove the need to predefine bucket boundaries and instead provide higher-resolution, adaptive buckets (see [Prometheus docs](https://prometheus.io/docs/specs/native_histograms/) for details).
231
+
232
+
Unlike classic histograms, which are sent in plain text, **native histograms require the protobuf protocol**.
233
+
In addition to running Prometheus with native histogram support, since the Prometheus Helm chart is configured with remote write, the Grafana Agent must be configured to scrape and remote write using protobuf.
234
+
Native histograms are **disabled by default**, but when you enable them globally, the Helm chart automatically updates the Grafana Agent configuration accordingly.
235
+
236
+
To enable native histograms, define this in your `values.yaml`:
237
+
238
+
```yaml
239
+
global:
240
+
telemetry:
241
+
metrics:
242
+
nativeHistograms: true
243
+
244
+
prometheus:
245
+
server:
246
+
extraFlags:
247
+
- web.enable-lifecycle
248
+
- enable-feature=remote-write-receiver
249
+
- enable-feature=native-histograms
250
+
```
251
+
252
+
After updating values, it might be required to restart the Grafana Agent so it picks up the new configuration:
⚠️ **Important**: Classic and native histograms cannot be aggregated together.
258
+
If you switch from classic to native histograms, dashboards may need to account for the transition. See [Prometheus migration guidelines](https://prometheus.io/docs/specs/native_histograms/#migration-considerations) for details.
And open your web browser to http://localhost:9090/graph.
227
+
228
+
#### Native Histograms
229
+
230
+
Native histograms are an **experimental** Prometheus feature that remove the need to predefine bucket boundaries and instead provide higher-resolution, adaptive buckets (see [Prometheus docs](https://prometheus.io/docs/specs/native_histograms/) for details).
231
+
232
+
Unlike classic histograms, which are sent in plain text, **native histograms require the protobuf protocol**.
233
+
In addition to running Prometheus with native histogram support, since the Prometheus Helm chart is configured with remote write, the Grafana Agent must be configured to scrape and remote write using protobuf.
234
+
Native histograms are **disabled by default**, but when you enable them globally, the Helm chart automatically updates the Grafana Agent configuration accordingly.
235
+
236
+
To enable native histograms, define this in your `values.yaml`:
237
+
238
+
```yaml
239
+
global:
240
+
telemetry:
241
+
metrics:
242
+
nativeHistograms: true
243
+
244
+
prometheus:
245
+
server:
246
+
extraFlags:
247
+
- web.enable-lifecycle
248
+
- enable-feature=remote-write-receiver
249
+
- enable-feature=native-histograms
250
+
```
251
+
252
+
After updating values, it might be required to restart the Grafana Agent so it picks up the new configuration:
⚠️ **Important**: Classic and native histograms cannot be aggregated together.
258
+
If you switch from classic to native histograms, dashboards may need to account for the transition. See [Prometheus migration guidelines](https://prometheus.io/docs/specs/native_histograms/#migration-considerations) for details.
| global.postgres | object | `{"alerts":{"groups":{"Basic":{"delay":"1m","enabled":true},"Connections":{"delay":"5m","enabled":true,"thresholds":{"critical":0.9,"notify":0.5,"warning":0.8}},"Notifications":{"delay":"15m","enabled":true,"thresholds":{"critical":0.9,"notify":0.5,"warning":0.8}}}},"database":"coder","exporter":{"image":"quay.io/prometheuscommunity/postgres-exporter"},"hostname":"localhost","mountSecret":"secret-postgres","password":null,"port":5432,"sslmode":"disable","sslrootcert":null,"username":"coder","volumeMounts":[],"volumes":[]}` | postgres connection information NOTE: these settings are global so we can parameterise some values which get rendered by subcharts |
| global.telemetry.metrics.nativeHistograms | bool | `false` | enable Prometheus native histograms or default to classic histograms |
266
334
| global.telemetry.metrics.scrape_interval | string | `"15s"` | how often the collector will scrape discovered pods |
267
335
| global.telemetry.metrics.scrape_timeout | string | `"12s"` | how long a request will be allowed to wait before being canceled |
268
336
| global.telemetry.profiling.delta_profiling_duration | string | `"30s"` | duration of each pprof profiling capture, must be less than scrape_interval |
0 commit comments