RDC Prometheus plugin
The rdc_prometheus.py is a Prometheus plugin for RDC The rdc_prometheus_example.yml and prometheus_targets.json are example Prometheus configuration. If there are multiple compute nodes, they can be defined at prometheus_targets.json. Change-Id: I3611b1e8a166f6608351f6e7644808bf72a4d3a0
This commit is contained in:
committed by
Chris Freehill
parent
15be17539f
commit
9c7a1347ea
@@ -6,9 +6,24 @@ Then you can run RdcReader in python_binding folder:
|
||||
python RdcReader.py
|
||||
|
||||
* Prometheus plugin
|
||||
Install the prometheus_client:
|
||||
% pip install prometheus_client
|
||||
|
||||
Start the rdcd with auth and then run plugin to connect to it:
|
||||
% python rdc_prometheus.py
|
||||
|
||||
* Collectd plugin
|
||||
Check the options of the plugin:
|
||||
% python rdc_prometheus.py --help
|
||||
|
||||
Verify the plugin is running:
|
||||
% curl localhost:5000
|
||||
|
||||
In the managment computer, install the Prometheus from
|
||||
https://github.com/prometheus/prometheus
|
||||
|
||||
Modify the file prometheus_targets.json to add the compute nodes running the plugin.
|
||||
Start the Prometheus
|
||||
% prometheus --config.file=<full path of the rdc_prometheus_example.yml>
|
||||
|
||||
Browse to localhost:9090 in the managment computer for metrics from RDC.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user