File tree 1 file changed +14
-0
lines changed 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,20 @@ h = Histogram('request_latency_seconds', 'Description of histogram')
252
252
h.observe(4.7 , {' trace_id' : ' abc123' })
253
253
```
254
254
255
+ Exemplars are only rendered in the OpenMetrics exposition format. If using the
256
+ HTTP server or apps in this library, content negotiation can be used to specify
257
+ OpenMetrics (which is done by default in Prometheus). Otherwise it will be
258
+ necessary to use ` generate_latest ` from
259
+ ` prometheus_client.openmetrics.exposition ` to view exemplars.
260
+
261
+ To view exemplars in Prometheus it is also necessary to enable the the
262
+ exemplar-storage feature flag:
263
+ ```
264
+ --enable-feature=exemplar-storage
265
+ ```
266
+ Additional information is available in [ the Prometheus
267
+ documentation] ( https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage ) .
268
+
255
269
### Disabling ` _created ` metrics
256
270
257
271
By default counters, histograms, and summaries export an additional series
You can’t perform that action at this time.
0 commit comments