@cryptotaxi247 / netdata-1 / commits / 9ad5e9a99

allow match-ids and match-names to be given in alarms

Costa Tsaousis (ktsaou) committed Feb 25, 2018 at 20:22 UTC 9ad5e9a992cf725e8c5950ba20b4368320695ba8
1 file changed +6
src/health_config.c
+6
@@ -372,6 +372,12 @@ static inline int health_parse_db_lookup(
372 else if(!strcasecmp(key, "unaligned")) {
373 *options |= RRDR_OPTION_NOT_ALIGNED;
374 }
375 + else if(!strcasecmp(key, "match-ids") || !strcasecmp(key, "match_ids")) {
376 + *options |= RRDR_OPTION_MATCH_IDS;
377 + }
378 + else if(!strcasecmp(key, "match-names") || !strcasecmp(key, "match_names")) {
379 + *options |= RRDR_OPTION_MATCH_NAMES;
380 + }
381 else if(!strcasecmp(key, "of")) {
382 if(*s && strcasecmp(s, "all") != 0)
383 *dimensions = strdupz(s);