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] "Non Matching Series" per Rule #146

Open
mertbakir opened this issue Aug 17, 2020 · 0 comments
Open

[Feature Request] "Non Matching Series" per Rule #146

mertbakir opened this issue Aug 17, 2020 · 0 comments

Comments

@mertbakir
Copy link

Is your feature request related to a problem? Please describe.

I'm trying to make a high level overview dashboard and I've column for 'Availability' and 'Alerts'. Availability basically checks if there is data or not. Alerts is the number of alerts.

I'm using influxdb as datasource and query returns nothing if there is no data for the selected time interval.

Query below will display 0 if host is down in last 10 minute, yet it will return nothing ('non matching series') if it has been down for more than 10m. I can make time interval longer but I don't think it'a good solution.

SELECT non_negative_derivative(mean("uptime") AS "isUp" FROM system WHERE "host" =~ /$host/ AND time > now()-10m GROUP BY time(1m), "host" fill(0)

Non matching series is useful for setting a "default value" for this kind of queries but here is the problem. If there is no matching series, Alerts should display 'OK' which means no problem while Availability should display 'NON-OK' since it means the host is not available.

Describe the solution you'd like
A clear and concise description of what you want to happen.

If I can override "non matching series" for each rule, problem I explained above will be solved. It will add more flexibility.

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

No branches or pull requests

1 participant