mirror of
https://github.com/prometheus-community/json_exporter
synced 2024-12-20 13:46:59 +00:00
fe22a839e2
Signed-off-by: rustyclock <rustyclock@protonmail.com>
34 lines
920 B
YAML
34 lines
920 B
YAML
---
|
|
metrics:
|
|
- name: example_global_value
|
|
path: "{ .counter }"
|
|
help: Example of a top-level global value scrape in the json
|
|
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")]}'
|
|
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
|
|
|
|
# For full http client config parameters, ref: https://pkg.go.dev/github.com/prometheus/common/config?tab=doc#HTTPClientConfig
|
|
#
|
|
# http_client_config:
|
|
# tls_config:
|
|
# insecure_skip_verify: true
|
|
# basic_auth:
|
|
# username: myuser
|
|
# #password: veryverysecret
|
|
# password_file: /tmp/mysecret.txt
|