-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elasticsearch-xpack shard metricset not sending metrics #26314
Comments
Pinging @elastic/integrations (Team:Integrations) |
On the discuss forum someone noted that the module config specified an older verison. This was because I had upgraded metricbeat on this node, but I get the same error on fresh installs with the following config:
|
I had some sporadic shard monitoring data come into my monitoring cluster the past couple of nights, and it correlates with status changes. In other words: I only got updated shard data when a shard changed status. So now I'm wondering whether this is a feature of the shard metricset? It's not clear in the documentation at all, and it's incompatible with my grafana dashboards, unfortunately. But that seems to be the most likely explanation so far... Can anyone confirm this? |
Someone has confirmed on the discuss group that this is the case. This then becomes a documentation issue on the metricbeat shard metricset page - much easier to resolve! |
@ndtreviv The elasticsearch module in metricbeat has two configurations one for monitoring (xpack.enabled: true) or metricsets depending on purpose.
If have monitoring config (xpack.enabled: true), the index .monitoring-es-* indices will populate and are used in rendering in Kibana > Stack Monitoring views for that ES. If set just metricsets and set xpack.enabled: false, and with metricsets defined then should populate in metricbeat-* |
@predogma I specifically specified metricsets to try and get around this error: #26284 It currently keeps throwing errors about collecting ml_job stats, which I don't want (I have ml turned off on my cluster specifically). I thought at the time that specifying metricsets and excluding this one would help me. I guess not! |
Anyway, the fix to this issue is to update the documentation on the metricsets to make it clear what data each set draws in. For example: The shards metricset does not bring in all data about shards - only shards that have changed status as and when they do change status, and so far I've only seen it report shards that have |
Hi! We're labeling this issue as |
👍 |
Hi! We're labeling this issue as |
There might be one possible explanation of this behavior. Looking at the source code of the Looking at the way the document ID is generated, we can see that the cluster state_uuid is used as prefix of that ID. This means that
In the first case, you can probably correlate this with a higher amount of indexing failures. |
I'm trying to ship my monitoring stats to a separate cluster using metricbeat, but the shard metricset isn't being sent:
There are no errors in the logs (follow the link to the discussion forum post and you can see some logs there).
elasticsearch-xpack config (vanilla):
metricbeat.yml:
Install metricbeat as per documented instructions: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-installation-configuration.html (but using 7.12.0)
The text was updated successfully, but these errors were encountered: