prometheus-uyuni_sd

command module
v0.0.0-...-ac57835 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 9 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL