I currently want to build a metric to track a rollout. So what I want to do is check if a field with a specific value does exist once per host, count these host and match them against hosts where this field with the value does not exist.
Is there a way to do that or am I having the wrong approach?
Thanks in advance.
Is this for a Lens visualization?
Do I understand your situation correctly:
- Before rollout, hosts report regularly about the value of
field and all have the same value
- During rollout, some hosts now report regularly with the new value of
field, while some still report the old value of
- After rollout, all hosts now report regularly with the new value of
And during the rollout you want to see out of X hosts, how many are now reporting the new value (say 5/10)?
I tried to make this work in Kibana Lens but couldn't manage.
However, you might be able to create two different Lens visualizations of the Metric type, one track how many hosts have reported the old value and one to track how many have reported the new value. Though I don't think you can make those dynamic over which value you want to track (old versus new).