#Way to "Merge" node_labels and node_new_status?

1 messages · Page 1 of 1 (latest)

snow field
#

I am working on a customer problem but I am new to Harvest. This seems like it should be an easy problem to solve.

They wanted the "ha" fields from the /api/cluster/nodes REST call added to node_labels, which we were able to figure out. But trying to get those into node_new_status, or tying them together, has stumped us thus far. They need to use node_new_status because it has a 0 value if the node is down, and they are trying to query on that.

Any thoughts on what the best approach there would be? Ultimately they are just wanting to be get alerted when a node goes down and have the associated ha partner info right there in the metric.

red tinsel
#

hi @snow field I assume you added something like - ^ha.partners.name => ha to the conf/rest/9.12.0/node.yaml template? If so, try adding that counter to the list of export_options instance_keys. That will add the ha label to all the node_* metrics including node_new_status. Like this

snow field
#

I added that to a node_custom.yaml file but yeah. I did not do the instance_keys though, I will try that

snow field
#

Forgot to follow up, that worked thanks!