Previously, using the version switch (`chronograf --version`) would
yield no version or commit information. This was because those two
package vars were exported, when the build script expects them to be
package private. To keep the build script as consistent as possible
across repos, the solution was to just make those package vars private
Connect #679
It's useful to see when a host is potentially having problems and when a
host is definitely having problems. We want to show when we haven't
heard from hosts in the past 10 minutes or greater than that interval.
To facilitate this, the deltaUptime query was adjusted to fetch 10
minutes worth of data grouped into 1m intervals with a fill(0). The
"show tag values" query to fetch all hosts sets the uptime value of
hosts to be -1. If a negative value is seen by a HostRow for a
deltaUptime value, the status light is set to red. If it's 0 (meaning a
fill value), we set that to an amber light. Finally if the host is
reporting a positive deltaUptime, the light becomes green.
This incorporates some feedback received from a spike implementation of
host status. For one, the uptime query (now named deltaUptime to
better indicate this is a change in uptime) is now packed into the query
to fetch the rest of the data for the host page. Also, a "show tag
values" query has been added here to fetch hosts that will escape the
time range selected by the group by in the deltaUptime query (see this
issue: https://github.com/influxdata/influxdb/issues/6967).
While not implemented in this commit, it's possible now that we could
show different treatments for those hosts that haven't been seen
"recently" (as defined by the time selection on the deltaUptime query)
and those that have.
Previously, the proxy would only report the error code it received from
an InfluxDB instance. This also passes the error message returned by
InfluxDB through, so it appears in the Chronograf server logs as well as
in the response returned to the frontend by the proxy (making it visible
by inspecting the request in the network tab).
- Builder queries are blue
- Raw text queries are purple
- Using the new monospace font here
- Doing something a bit heavy-handed to ensure there is no jitter
between the raw text and builder text