Files
rocm-systems/projects/rdc/python_binding/README.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 wiersze
896 B
Markdown
Czysty Zwykły widok Historia

2022-04-27 14:38:48 -04:00
# Quick start
2020-07-29 11:59:20 -04:00
If you do not have the RDC installed, please specify the RDC library path using:
2022-04-27 14:38:48 -04:00
$ export LD_LIBRARY_PATH=<rdc_libs_path>
2020-07-29 11:59:20 -04:00
Then you can run RdcReader in python_binding folder:
2022-04-27 14:38:48 -04:00
$ python RdcReader.py
# Prometheus plugin
2020-08-13 09:01:12 -04:00
Install the prometheus_client:
2022-04-27 14:38:48 -04:00
$ pip install prometheus_client
2020-07-29 11:59:20 -04:00
2020-08-13 09:01:12 -04:00
Start the rdcd with auth and then run plugin to connect to it:
2022-04-27 14:38:48 -04:00
$ python rdc_prometheus.py
2020-07-29 11:59:20 -04:00
2020-08-13 09:01:12 -04:00
Check the options of the plugin:
2022-04-27 14:38:48 -04:00
$ python rdc_prometheus.py --help
2020-07-29 11:59:20 -04:00
2020-08-13 09:01:12 -04:00
Verify the plugin is running:
2022-04-27 14:38:48 -04:00
$ curl localhost:5000
2020-07-29 11:59:20 -04:00
2020-08-13 09:01:12 -04:00
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
2022-04-27 14:38:48 -04:00
$ prometheus --config.file=<full path of the rdc_prometheus_example.yml>
2020-08-13 09:01:12 -04:00
2024-05-08 15:56:44 -07:00
Browse to localhost:9090 in the management computer for metrics from RDC.
2020-07-29 11:59:20 -04:00