diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-05-19 20:39:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 20:39:00 +0300 |
commit | 675bd3e01a0366610b2a82cbca22fbf2489ca5cf (patch) | |
tree | 8af4299196b8bdaaa0824969fc4aea576625dd0f /collectors/statsd.plugin | |
parent | 02a418c515afdcafab5512790867aafb366a73a6 (diff) |
statsd sets should count unique values (#12963)
statsd set should count unique values
Diffstat (limited to 'collectors/statsd.plugin')
-rw-r--r-- | collectors/statsd.plugin/statsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/statsd.plugin/statsd.c b/collectors/statsd.plugin/statsd.c index d96de74273..fc44f878d8 100644 --- a/collectors/statsd.plugin/statsd.c +++ b/collectors/statsd.plugin/statsd.c @@ -601,7 +601,7 @@ static inline void statsd_process_set(STATSD_METRIC *m, const char *value) { else { void *t = dictionary_get(m->set.dict, value); if (unlikely(!t)) { - dictionary_set(m->set.dict, value, NULL, 1); + dictionary_set(m->set.dict, value, "", 1); m->set.unique++; } |