summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2017-03-19 10:42:01 +0100
committernicolargo <nicolas@nicolargo.com>2017-03-19 10:42:01 +0100
commit021d4603268e02576a09efc76ad7f7c125b33ab9 (patch)
treeb7d926aef171a76a6ec348f2462b4e453c31b728 /conf
parentc41f74f57970af5718e7e302eeb5df070387a5d7 (diff)
Implement ok of the Promotheus Exporter, need to add the plugin documentation
Diffstat (limited to 'conf')
-rw-r--r--conf/glances.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/glances.conf b/conf/glances.conf
index 125115a3..e81b34fa 100644
--- a/conf/glances.conf
+++ b/conf/glances.conf
@@ -361,6 +361,22 @@ port=5678
# - Third frame with the Glances plugin stats (JSON)
prefix=G
+[prometheus]
+# Configuration for the --export-prometheus option
+# 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 '_')
+# 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']
+host=localhost
+port=9091
+prefix=glances
+
##############################################################################
# AMPS
# * enable: Enable (true) or disable (false) the AMP