json_exporter/examples/config.yml

24 lines
583 B
YAML
Raw Normal View History

---
metrics:
2016-02-08 13:48:30 +00:00
- name: example_global_value
path: $.counter
help: Example of a top-level global value scrape in the json
2016-02-08 13:48:30 +00:00
labels:
environment: beta # static label
location: $.location # dynamic label
2016-02-08 13:48:30 +00:00
- name: example_value
type: object
help: Example of sub-level value scrapes from a json
2016-02-08 13:48:30 +00:00
path: $.values[*]?(@.state == "ACTIVE")
labels:
environment: beta # static label
id: $.id # dynamic label
values:
active: 1 # static value
count: $.count # dynamic value
boolean: $.some_boolean
headers:
X-Dummy: my-test-header