Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Add mappings for single stats #3

Merged
merged 2 commits into from
Apr 9, 2020
Merged

Conversation

ricoberger
Copy link
Owner

Introduce a new mappings option for singlestats, which allows you to overwrite a value with some custom text.

For example, when Prometheus returns a 0 or 1 for a query you can map these values the following way:

options:
  mappings:
    "0": "DOWN"
    "1": "UP"

Introduce a new "mappings" option for singlestats, which allows you to
overwrite a value with some custom text.

For example, when Prometheus returns a 0 or 1 for a query you can map
these values the following way:

options:
  mappings:
    "0": "DOWN"
    "1": "UP"
@ricoberger ricoberger merged commit c648c8f into master Apr 9, 2020
@ricoberger ricoberger deleted the add-mappings-for-singlestats branch April 9, 2020 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant