I have a simple Spring Boot application using micrometer-registry-elastic and I can't seem to export metrics any longer.
I have this error when I run the app :
ERROR i.m.elastic.ElasticMeterRegistry : failed to send metrics to elastic: {"error":"no handler found for uri [/micrometer-metrics-2024-10/doc/_bulk] and method [POST]"}
Tell me if there's anything I can provide to help
Hi @Hugo_RIVIERE,
Welcome! By micrometer-registry-elastic
do you mean you're using teh Micrometer Elastic export implementation to send your metrics to Elasticsearch?
Micrometer is not a tool that is developed or maintained by Elastic, but that looks like it might be either that your Elasticsearch cluster is unavailable and Micrometer can't send, or a version incompatibility. Can you confirm which versions of Micrometer and Elasticsearch that you're using? Can you also check the health of your cluster?
Hope that helps!
Thank for your response, I'm using micrometer-registry-elastic:1.1.4 and Elasticsearch online so I suppose it's the latest version.
And my cluster is fine, I can create indexes and check its previous documents all directly via the interface.
And the index doesn't exist yet but it's supposed to be created if I understood correctly.
And the status of my cluster is green
And when I check the index in the console, it returns
{
micrometer-metrics-2024-10": {
"aliases": {},
"mappings": {
"dynamic": "true",
"_source": {
"enabled": false
},
...
Maybe it's this "enabled: false" that is causing the issue ?