mirror of
https://github.com/prometheus-community/json_exporter
synced 2024-12-23 15:04:43 +00:00
a03b913a00
Add missing valuetype configuration to tests. Signed-off-by: SuperQ <superq@gmail.com>
25 lines
713 B
YAML
25 lines
713 B
YAML
---
|
|
modules:
|
|
default:
|
|
metrics:
|
|
- name: example_global_value
|
|
path: "{ .counter }"
|
|
help: Example of a top-level global value scrape in the json
|
|
valuetype: gauge
|
|
labels:
|
|
environment: beta # static label
|
|
location: "planet-{.location}" # dynamic label
|
|
|
|
- name: example_value
|
|
type: object
|
|
help: Example of sub-level value scrapes from a json
|
|
path: '{.values[?(@.state == "ACTIVE")]}'
|
|
valuetype: counter
|
|
labels:
|
|
environment: beta # static label
|
|
id: '{.id}' # dynamic label
|
|
values:
|
|
active: 1 # static value
|
|
count: '{.count}' # dynamic value
|
|
boolean: '{.some_boolean}'
|