I have several devices, each with a unique id, where each has a field that can change value. I would like to get a count of those objects whose fields equals a particular value.
For example, the foo.bar.wifiStatus field on any number of these devices can be "online". I want to show a total count of which devices are currently that value, and when one of the device's field's changes value, the count gets decremented accordingly.
I want the metric to show total online devices of 1 and a total of offline devices of 2 based off the most recent timestamp. In the timeseries builder with the setting on metric, I have this data in an index called wifi_status with the filter ratio of foo.bar.wifistatus:online, the Denominator: *, Metric Aggregation:count, Grouped by: everything. I am getting a count of zero when I am expecting 1.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.