2020-08-04 05:50:52 +00:00
|
|
|
---
|
|
|
|
metrics:
|
2016-02-08 13:48:30 +00:00
|
|
|
- name: example_global_value
|
|
|
|
path: $.counter
|
2020-08-04 05:50:52 +00:00
|
|
|
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
|
2020-08-04 05:50:52 +00:00
|
|
|
location: $.location # dynamic label
|
2016-02-08 13:48:30 +00:00
|
|
|
|
|
|
|
- name: example_value
|
|
|
|
type: object
|
2020-08-04 05:50:52 +00:00
|
|
|
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
|
2020-06-13 20:56:54 +00:00
|
|
|
boolean: $.some_boolean
|
2020-08-04 05:50:52 +00:00
|
|
|
|
|
|
|
headers:
|
|
|
|
X-Dummy: my-test-header
|