@cryptotaxi247 / netdata-1 / commits / 4fa3ecf84

Add example for prometheus archiving source parameter

Based on #5504, this adds a clearer explanation of how to change the source, after the various sources are explained.

Chris Akritidis committed Sep 17, 2019 at 12:20 UTC 4fa3ecf84f4ee3abc425989880688a712ff12b9b
1 file changed +3
backends/prometheus/README.md
+3
@@ -236,6 +236,9 @@ Netdata can send metrics to prometheus from 3 data sources:
236 The format of the metrics is: `CONTEXT_UNITS_sum{chart="CHART",family="FAMILY",dimension="DIMENSION"}`.
237 All the other operations are the same with `average`.
238
239 +To change the data source to `sum` or `as-collected` you need to provide the `source` parameter in the request URL.
240 +e.g.: `http://your.netdata.ip:19999/api/v1/allmetrics?format=prometheus&help=yes&source=as-collected`
241 +
242 Keep in mind that early versions of Netdata were sending the metrics as: `CHART_DIMENSION{}`.
243
244 ### Querying Metrics