statsd sets should count unique values (#12963)
statsd set should count unique values
Costa Tsaousis committed
May 19, 2022 at 20:39 UTC
675bd3e01a0366610b2a82cbca22fbf2489ca5cf
1 file changed
+1
-1
collectors/statsd.plugin/statsd.c
+1
-1
@@ -601,7 +601,7 @@ static inline void statsd_process_set(STATSD_METRIC *m, const char *value) {
601
else {
602
void *t = dictionary_get(m->set.dict, value);
603
if (unlikely(!t)) {
604
- dictionary_set(m->set.dict, value, NULL, 1);
604
+ dictionary_set(m->set.dict, value, "", 1);
605
m->set.unique++;
606
}
607