diff options
author | nicolargo <nicolas@nicolargo.com> | 2019-04-12 11:50:47 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2019-04-12 11:50:47 +0200 |
commit | f9f7bf2f368bf83c1881edc1727c5875d60e663a (patch) | |
tree | de917b345094246b006f198f34c5c445c309dbf0 /conf | |
parent | c645ef81ae370b0ca077828b1e0c368a16a11110 (diff) |
Too less data using prometheus exporter #1462
Diffstat (limited to 'conf')
-rw-r--r-- | conf/glances.conf | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/conf/glances.conf b/conf/glances.conf index 8078c8fe..bb23c133 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -450,20 +450,23 @@ prefix=G # https://prometheus.io # Create a Prometheus exporter listening on localhost:9091 (default configuration) # Metric are exporter using the following name: -# <prefix>_<plugin>_<stats> (all specials character are replaced by '_') +# <prefix>_<plugin>_<stats>{labelkey:labelvalue} # Note: You should add this exporter to your Prometheus server configuration: # scrape_configs: # - job_name: 'glances_exporter' # scrape_interval: 5s # static_configs: # - targets: ['localhost:9091'] +# +# Labels will be added for all measurements (default is src:glances) +# labels=foo:bar,spam:eggs +# You can also use dynamic values +# labels=system:`uname -s` +# host=localhost port=9091 -prefix=glances -# Labels will be added for all measurements -#labels=foo:bar,spam:eggs -# You can also use dynamic values -#labels=system:`uname -s` +#prefix=glances +#labels=src:glances [restful] # Configuration for the --export RESTful option |