Prometheus SUSE Manager/Uyuni Service Discovery
This tool connects to SUSE Manager servers and generates Prometheus scrape target configurations, taking advantage of the file-based service discovery mechanism provided by Prometheus.
Prometheus Configuration
Please remember to adjust your prometheus.yml configuration file to use the file service discovery mechanism and point it to the output location of this tool.
Example configuration section of prometheus.yml:
- job_name: 'overwritten-default'
file_sd_configs:
- files: ['/data/prometheus/scrape-config/*.yml']
Notes
Added functionality to generate Prometheus target labels from the Custom System Info feature. Currently hardcoded to scrape keys prefixed with "label_".
Credits
Forked from: github.com/cavalheiro/prometheus-suma_sd
Merged code from this SUSE Prometheus Patch
Thanks SUSE for the heavy lifting!
License
This project has been released under the MIT license. Please see the LICENSE.md file for more details.