Skip to content
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

Snapshot metrics - not finding if the last backup was successful #961

Open
GeiserX opened this issue Nov 15, 2024 · 2 comments
Open

Snapshot metrics - not finding if the last backup was successful #961

GeiserX opened this issue Nov 15, 2024 · 2 comments

Comments

@GeiserX
Copy link

GeiserX commented Nov 15, 2024

I enabled the --collector.snapshots to see which metrics I could get from the snapshots I'm doing in my ES cluster.
However these are the only metrics I found related to it then:

elasticsearch_scrape_duration_seconds{collector="snapshots"} 0.006456413
elasticsearch_scrape_success{collector="snapshots"} 1

And then many times this structure, for each node:

elasticsearch_thread_pool_active_count{cluster="deduplicator-es",es_client_node="true",es_data_node="false",es_ingest_node="false",es_master_node="true",host="...",name="deduplicator-es-es-master-2",type="searchable_snapshots_cache_fetch_async"} 0
elasticsearch_thread_pool_active_count{cluster="deduplicator-es",es_client_node="true",es_data_node="false",es_ingest_node="false",es_master_node="true",host="...",name="deduplicator-es-es-master-2",type="searchable_snapshots_cache_prewarming"} 0
elasticsearch_thread_pool_active_count{cluster="deduplicator-es",es_client_node="true",es_data_node="false",es_ingest_node="false",es_master_node="true",host="...",name="deduplicator-es-es-master-2",type="snapshot"} 0
elasticsearch_thread_pool_active_count{cluster="deduplicator-es",es_client_node="true",es_data_node="false",es_ingest_node="false",es_master_node="true",host="...",name="deduplicator-es-es-master-2",type="snapshot_meta"} 0

I would simply like to check if the last backup failed or not, but there's nothing I can check related to that it seems. I have set one daily backup.

I don't know if this is a feature request, a bug, or if I'm doing something wrong on my side, honestly.

Thank you

@GeiserX GeiserX changed the title Snapshot metrics Snapshot metrics - not finding if the last backup was successful Nov 15, 2024
@Skunnyk
Copy link

Skunnyk commented Dec 2, 2024

Once enabled, you should have tons of metrics related to snapshots: https://github.com/prometheus-community/elasticsearch_exporter?tab=readme-ov-file#metrics like elasticsearch_snapshot_stats_xxxxxx

@sysadmind
Copy link
Contributor

Can you provide the version of the exporter that you are running? Also, the exporter looks for metrics from the /_snapshot endpoint. Can you query that on your elasticsearch cluster and see if there are any results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants