Prometheus PuppetDB SD
Prometheus PuppetDB SD is a PuppetDB based service discovery tool for Prometheus. It queries PuppetDB to retrieve a list of targets and output Prometheus configuration to scrape the discovered targets.
Installing
$ go get github.com/camptocamp/prometheus-puppetdb-sdUsage
Usage
prometheus-puppetdb-sd [OPTIONS]
Application Options:
-V, --version Display version.
-m, --manpage Output manpage.
-s, --sleep= Sleep time between queries. (default: 5s) [$SLEEP]
PuppetDB Client Options:
-u, --puppetdb.url= PuppetDB base URL. (default: http://puppetdb:8080) [$PUPPETDB_URL]
-x, --puppetdb.cert-file= A PEM encoded certificate file. [$PUPPETDB_CERT_FILE]
-y, --puppetdb.key-file= A PEM encoded private key file. [$PUPPETDB_KEY_FILE]
-z, --puppetdb.cacert-file= A PEM encoded CA's certificate file. [$PUPPETDB_CACERT_FILE]
-k, --puppetdb.ssl-skip-verify Skip SSL verification. [$PUPPETDB_SSL_SKIP_VERIFY]
-q, --puppetdb.query= PuppetDB query. (default: resources[certname, parameters] { type = 'Prometheus::Scrape_job' and exported = true }) [$PUPPETDB_QUERY]
Prometheus Service Discovery Options:
--prometheus.proxy-url= Prometheus target scraping proxy URL. [$PROMETHEUS_PROXY_URL]
Output Configuration:
-o, --output.method=[stdout|file|k8s-secret] Output method.…