mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-30 07:59:40 -08:00
8920024323
We have been Puppet user for 10 years and we are users of https://github.com/camptocamp/prometheus-puppetdb-sd However, that file_sd implementation contains business logic and assumptions around e.g. the modules which you are using. This pull request adds a simple PuppetDB service discovery, which will enable more use cases than the upstream sd. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
[
|
|
{
|
|
"certname": "edinburgh.example.com",
|
|
"environment": "prod",
|
|
"exported": false,
|
|
"file": "/etc/puppetlabs/code/environments/prod/modules/upstream/apache/manifests/init.pp",
|
|
"line": 384,
|
|
"parameters": {
|
|
"access_log": true,
|
|
"access_log_file": "ssl_access_log",
|
|
"additional_includes": [ ],
|
|
"directoryindex": "",
|
|
"docroot": "/var/www/html",
|
|
"ensure": "absent",
|
|
"options": [
|
|
"Indexes",
|
|
"FollowSymLinks",
|
|
"MultiViews"
|
|
],
|
|
"php_flags": { },
|
|
"labels": {
|
|
"alias": "edinburgh"
|
|
},
|
|
"scriptaliases": [
|
|
{
|
|
"alias": "/cgi-bin",
|
|
"path": "/var/www/cgi-bin"
|
|
}
|
|
]
|
|
},
|
|
"resource": "49af83866dc5a1518968b68e58a25319107afe11",
|
|
"tags": [
|
|
"roles::hypervisor",
|
|
"apache",
|
|
"apache::vhost",
|
|
"class",
|
|
"default-ssl",
|
|
"profile_hypervisor",
|
|
"vhost",
|
|
"profile_apache",
|
|
"hypervisor",
|
|
"__node_regexp__edinburgh",
|
|
"roles",
|
|
"node"
|
|
],
|
|
"title": "default-ssl",
|
|
"type": "Apache::Vhost"
|
|
}
|
|
]
|