diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-17 12:20:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-17 12:20:32 +0200 |
commit | 4fa3ecf84f4ee3abc425989880688a712ff12b9b (patch) | |
tree | b0e991614e84d7fd130fae623c7105dc1a5bf779 /backends/prometheus | |
parent | 2b8bb23b95efbff23abbd3fcc4b379c306da37d3 (diff) |
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.
Diffstat (limited to 'backends/prometheus')
-rw-r--r-- | backends/prometheus/README.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/prometheus/README.md b/backends/prometheus/README.md index 0a4be27e31..dfc28b047b 100644 --- a/backends/prometheus/README.md +++ b/backends/prometheus/README.md @@ -236,6 +236,9 @@ Netdata can send metrics to prometheus from 3 data sources: The format of the metrics is: `CONTEXT_UNITS_sum{chart="CHART",family="FAMILY",dimension="DIMENSION"}`. All the other operations are the same with `average`. +To change the data source to `sum` or `as-collected` you need to provide the `source` parameter in the request URL. +e.g.: `http://your.netdata.ip:19999/api/v1/allmetrics?format=prometheus&help=yes&source=as-collected` + Keep in mind that early versions of Netdata were sending the metrics as: `CHART_DIMENSION{}`. ### Querying Metrics |