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

Feature request: Threshold for boolean values #163

Open
lhotakj opened this issue Nov 18, 2022 · 2 comments
Open

Feature request: Threshold for boolean values #163

lhotakj opened this issue Nov 18, 2022 · 2 comments

Comments

@lhotakj
Copy link

lhotakj commented Nov 18, 2022

Hi,

first of all, big thanks for your plugin - that's execaly what I was looking for!I'm using Status History panel, but it doesn't work well as it was not connecting bar for time with no data.

I'm pinging our AWS inftrastructure every 15mins and saving metric only if an EC2 instance runs with a value running.
Since there exists just running state I don't have data when the instance was stopped or terminated. And that's my issue.

For instances which were running in the past, it shows them as running even it was stopped in the beginning of the period.
Please see attached image - there was just one instance which was really running (the middle bar)
image

Would it be possible to some kind of an extra option - a value is not present/null in at the start of period respect that?

Otherwise I'd need to save all other statuses, which I don't want to do unnecesary data in InfluxDB.

Many thanks,

@klaernie
Copy link

Since you don't have values in InfluxDB, you can ask it to fill the null values with for example the static value not running. Then these missing values are generated only while outputting the data, but the panel does see the data.

@klaernie
Copy link

And since the screenshot loaded delayed for me, I only noticed now that you're using flux, so a simple |> fill(value: "not running") should be all you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants