Eric Lippmann
7c068d4adf
Use icinga-go-library
2024-05-24 09:56:28 +02:00
Eric Lippmann
c070615e64
Move Redis related code to redis
2024-05-22 11:51:22 +02:00
Eric Lippmann
e31b101f4f
Upgrade go-redis to v9
...
Co-Authored-By: Alvar Penning <alvar.penning@icinga.com>
2024-03-22 15:32:15 +01:00
Julian Brost
061660b023
Telemetry: use mutex for synchronizing last database error
...
The old CompareAndSwap based code tended to end up in an endless loop. Replace
it by simple syncrhonization mechanisms where this can't happen.
2022-06-28 13:30:00 +02:00
Julian Brost
def7c5f22c
Telemetry: change stats names in Redis
...
The same names are used in perfdata names and config_sync sounds more natural
than sync_config.
2022-06-28 13:30:00 +02:00
Julian Brost
741460c935
Telemetry: rename keys in heartbeat stream
...
In both C++ and Go, the keys are only used as constant strings, so namespacing
them just adds clutter for the `general:*` keys, therefore remove it.
2022-06-28 13:30:00 +02:00
Julian Brost
36d5f7b33c
Telemetry: send Go metrics as performance data string
...
Rather than using a JSON structure to convey these values, simply use the
existing format to communicate performance data to Icinga 2.
Also removes the reference to Go in the Redis structure, allowing this string
to be extended with more metrics in the future without running into naming
issues.
2022-06-28 13:30:00 +02:00
Alexander A. Klimov
e1ff704aff
Write own heartbeat into icingadb:telemetry:heartbeat
...
including version, current DB error and HA status quo.
2022-06-23 18:31:45 +02:00
Alexander A. Klimov
fac9f5e4e5
Write ops/s by op and s to icingadb:telemetry:stats
2022-06-15 09:51:59 +02:00