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


[ROCm/rdc commit: 9c7a1347ea]
This commit is contained in:
Bill(Shuzhou) Liu
2020-08-13 09:01:12 -04:00
zatwierdzone przez Chris Freehill
rodzic 8d297e07c1
commit b91560f0a8
4 zmienionych plików z 140 dodań i 1 usunięć
@@ -0,0 +1,17 @@
# global config
global:
scrape_interval: 10s # Set the scrape interval to every 10 seconds. Default is every 1 minute.
evaluation_interval: 10s # Evaluate rules every 10 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# A scrape configuration where the endpoints to scrape will be defined at prometheus_targets.json:
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'rdc'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
file_sd_configs:
- files:
- 'prometheus_targets.json'