veertuinc / anka-prometheus-exporter

A server that connects Anka Cloud to Prometheus
MIT License
7 stars 2 forks source link

CLOUD-762: Nodes (and anything else impermanent) that are disjoined stick around in previous state #8

Closed NorseGaud closed 3 years ago

NorseGaud commented 3 years ago

When you disjoin a node, the node_states metric doesn't remove the ID of the node.

We should have a disjoined state in the controller API or have the exporter notice it's gone and remove it/add it to a disjoined status. The exporter has a local state it keeps that we could try and access.

NorseGaud commented 3 years ago

Solved with metric.Reset()