My concern is about Metrics visualization (Observability --> Metrics) which is showing a hostname for which I don't have any metrics. Looking over the query I have found out it is retrieving as index_patterns or alias in both (Logs & Metrics).
query SourceQuery($sourceId: ID = "default") { source(id: $sourceId) { ...InfraSourceFields configuration { ...SourceConfigurationFields } status { ...SourceStatusFields } }}fragment InfraSourceFields on InfraSource { id version updatedAt origin}fragment SourceConfigurationFields on InfraSourceConfiguration { name description logAlias metricAlias inventoryDefaultView metricsExplorerDefaultView fields { container host message pod tiebreaker timestamp } logColumns { ... on InfraSourceTimestampLogColumn { timestampColumn { id } } ... on InfraSourceMessageLogColumn { messageColumn { id } } ... on InfraSourceFieldLogColumn { fieldColumn { id field } } }}fragment SourceStatusFields on InfraSourceStatus { indexFields { name type searchable aggregatable displayable } logIndicesExist metricIndicesExist}
Here you are a screenshot about my dev environment:
labs-dev-k8s0[1-3]: I have installed a Metricbeat
elasticsearch-0-0: It is a pod, I should only obtain its metrics in Observability --> Metrics --> Show --> Kubernetes Pods.
From my point of view, in Observability --> Metrics --> Show --> Hosts should show only hosts (virtual machines, servers and so on) with metrics.
For instance, If I have a virtual machine with PostgreSQL in which I have installed/configured Filebeat in order to send logs to Elasticsearch and I have added its index_pattern in Observability --> Logs, it should not be displayed in Metrics.
I use that method for Kubernetes metrics. However, in this case, I would like to know why logs alias is used in Metrics (Observability --> Metrics).
I come back to the example of a virtual machine where I have installed a PostgreSQL. I have installed/configured Filebeat in order to send logs to Elasticsearch and I have added its index_pattern in Observability --> Logs.
Why the hostname of the virtual machine appears in Observability --> Metrics?
If you click on any of the specific hosts you should be able to drill down to a specific document that it uses for these metrics, can you try that and see which event.module is set for that document?
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.