sentrysoftware / grafana-dashboards

GNU Affero General Public License v3.0
2 stars 0 forks source link

Host dashboard: connector tables does not properly report the connector status #11

Closed MarcDouguedroit closed 3 months ago

MarcDouguedroit commented 3 months ago

Issue

The connector panel in the host dashboard does not properly report the connectors status because the PromQL query does not specify the desired state.

Specifications

Similarly to what has been done for the "Monitored Devices" panel, the query should probably look like: hardware_sentry_connector_status{site=~"$site", host_name=~"$host_name", state="ok"} > 0 or hardware_sentry_connector_status{site=~"$site", host_name=~"$host_name", state="degraded"} > 0 or hardware_sentry_connector_status{site=~"$site", host_name=~"$host_name", state="failed"} > 0

with a value mapping to display the correct connector status.

MarcDouguedroit commented 3 months ago

The query is actually working properly. No need to change anything.