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

Support Uptime Percentage in Hosts List #1025

Closed
timraymond opened this issue Mar 15, 2017 · 1 comment
Closed

Support Uptime Percentage in Hosts List #1025

timraymond opened this issue Mar 15, 2017 · 1 comment
Milestone

Comments

@timraymond
Copy link
Contributor

timraymond commented Mar 15, 2017

A user wrote in here: https://community.influxdata.com/t/server-availability-percentage-value/243 asking how to construct a query for computing server uptime percentage.

I believe that this would be a useful enhancement to the existing status lights, since it would allow sorting by more / less stable hosts. This can be accomplished using subqueries like:

select sum("isUp") / count("isUp") from (select non_negative_derivative(mean("uptime")) / non_negative_derivative(mean("uptime")) as isUp from system where time > now() - 10m group by time(1m) fill(0));

Since this query relies on subqueries (introduced in v1.2.0), we would need to detect that the source supports this, and have a graceful fallback to the existing behavior.

EDIT: add info about v1.2.0

@nhaugo nhaugo added this to the Uncommitted milestone Mar 27, 2017
@russorat
Copy link
Contributor

russorat commented Jul 6, 2018

i am closing this in favor of making the query user customizable in #682

@russorat russorat closed this as completed Jul 6, 2018
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

3 participants