2020-08-20 02:48:09 +00:00
|
|
|
---
|
2022-05-27 05:47:32 +00:00
|
|
|
modules:
|
|
|
|
default:
|
|
|
|
metrics:
|
|
|
|
- name: example_global_value
|
|
|
|
path: "{ .counter }"
|
|
|
|
help: Example of a top-level global value scrape in the json
|
2022-07-03 08:52:45 +00:00
|
|
|
valuetype: gauge
|
2022-05-27 05:47:32 +00:00
|
|
|
labels:
|
|
|
|
environment: beta # static label
|
|
|
|
location: "planet-{.location}" # dynamic label
|
2020-08-20 02:48:09 +00:00
|
|
|
|
2022-05-27 05:47:32 +00:00
|
|
|
- name: example_value
|
|
|
|
type: object
|
|
|
|
help: Example of sub-level value scrapes from a json
|
|
|
|
path: '{.values[?(@.state == "ACTIVE")]}'
|
2022-07-03 08:52:45 +00:00
|
|
|
valuetype: counter
|
2022-05-27 05:47:32 +00:00
|
|
|
labels:
|
|
|
|
environment: beta # static label
|
|
|
|
id: '{.id}' # dynamic label
|
|
|
|
values:
|
|
|
|
active: 1 # static value
|
|
|
|
count: '{.count}' # dynamic value
|
|
|
|
boolean: '{.some_boolean}'
|