Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add valuetype to example config.yml #279

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ modules:
metrics:
- name: example_global_value
path: '{ .counter }'
valuetype: 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_timestamped_value
type: object
valuetype: gauge
path: '{ .values[?(@.state == "INACTIVE")] }'
epochTimestamp: '{ .timestamp }'
help: Example of a timestamped value scrape in the json
Expand All @@ -21,6 +23,7 @@ modules:
count: '{.count}' # dynamic value
- name: example_value
type: object
valuetype: gauge
help: Example of sub-level value scrapes from a json
path: '{.values[?(@.state == "ACTIVE")]}'
labels:
Expand All @@ -35,6 +38,7 @@ modules:
metrics:
- name: animal
type: object
valuetype: gauge
help: Example of top-level lists in a separate module
path: '{ [*] }'
labels:
Expand Down