I have a Java spring boot 2 application and micrometer is configured to log application metrics into elastic stack. Metrics and associated data from the application is getting logged in elastic stack however when trying to create visualization for CPU usage by the application not able to select tag (host) under Buckets.
Without having tag in buckets, not able to create a visualization to show how much CPU is utilized by the application.
Tag (host) can be seen in documents indexed by elastic search and same index is used for creating visualization.
OS:
Ubuntu 18.04 / 64bit
Kibana 7.5.2
Any idea or pointer why I do not see tag in Buckets
If need to create a simple visualization for CPU utilization by an application, how could I do it
To use a field in a bucket aggregation it has to be of type "keyword" - your field is probably mapped as "text". If you are using the default mappings, there should be a host.keyword field which contains the keyword indexed version of the host field. If not you have to adjust your mapping to include a keyword indexed version of host and re-index your existing data. Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html
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.