Skip to content

Commit

Permalink
pql_queries: fix prometheus example formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed Mar 29, 2024
1 parent a09e790 commit 412de7b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions _docs/pql_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,20 +306,20 @@ Why is that helpful? Prometheus has [native support to query PuppetDB](https://p

```yaml
- job_name: node-exporter-dev
puppetdb_sd_configs:
- url: "http://puppetdb.local:8080"
query: |
resources {
type = "Class" and title = "Profile::Core::Node_info" and
certname in resources[certname] {
type = "Class" and title = "Prometheus::Node_exporter"
}
puppetdb_sd_configs:
- url: "http://puppetdb.local:8080"
query: |
resources {
type = "Class" and title = "Profile::Core::Node_info" and
certname in resources[certname] {
type = "Class" and title = "Prometheus::Node_exporter"
}
refresh_interval: 30s
follow_redirects: true
include_parameters: true
enable_http2: true
port: 9100
}
refresh_interval: 30s
follow_redirects: true
include_parameters: true
enable_http2: true
port: 9100
relabel_configs:
- source_labels: [__meta_puppetdb_certname]
target_label: instance
Expand Down

0 comments on commit 412de7b

Please sign in to comment.