Add a new UNKNOWN state as the initial state of metrics
authorLuis Fernández Álvarez <luis.fernandez.alvarez@cern.ch>
Wed, 24 Oct 2018 13:49:35 +0000 (15:49 +0200)
committerLuis Fernández Álvarez <luis.fernandez.alvarez@cern.ch>
Mon, 29 Oct 2018 16:49:11 +0000 (17:49 +0100)
commit900a07ed70cdcfe3022d3dc25d275fe2015f4fdc
treee1131ace4ba6d6bb2d9776f93d7ab9015a94d5fc
parent92c3b2ed5f8e49737e29b11244585960a3478494
Add a new UNKNOWN state as the initial state of metrics

* UNKNOWN becomes the default state of the metrics.
* States are renumbered so UNKNOWN is lower than OKAY and the threshold
evaluation logic is consistent.
* If an invalid datasource is set in a threshold it will resolve to
UNKNOWN.
src/daemon/utils_cache.c
src/daemon/utils_cache.h
src/threshold.c
src/write_riemann_threshold.c