Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
447d940
commit 8920024
Showing
13 changed files
with
786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scrape_configs: | ||
- puppetdb_sd_configs: | ||
- url: http:// | ||
query: 'resources { type = "Package" and title = "httpd" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scrape_configs: | ||
- puppetdb_sd_configs: | ||
- url: http://puppetserver/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scrape_configs: | ||
- puppetdb_sd_configs: | ||
- url: ftp://puppet | ||
query: 'resources { type = "Package" and title = "httpd" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scrape_configs: | ||
- puppetdb_sd_configs: | ||
- query: 'resources { type = "Package" and title = "httpd" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[ | ||
{ | ||
"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" | ||
} | ||
] |
Oops, something went wrong.