Comments (4)
I can reproduce the problem, on elasticsearch_exporter 1.7.0, with ES 8.12.0 and ES 7.17;
By setting only cluster.routing.allocation.disk.watermark.low
, the unmarshall error happens, but it's ok on another cluster, and it fails there with cluster.routing.allocation.disk.watermark.flood_stage
🤔
from elasticsearch_exporter.
It would be really helpful to have an example of the API response from elasticsearch to use in our tests. cluster_settings_test.go has tests to cover the cluster settings endpoint including the watermark metrics. From what I understand, based on the provided error message, the problem is that instead of a string, there is now a nested json object being returned for the watermark metrics.
This could be a scenario where we need to use different structs based on elasticsearch version or customize the unmarshal.
from elasticsearch_exporter.
Hello! Here is an extract of a simple _cluster/settings
route on a ES 7.17 cluster where I have the problem:
{
"persistent" : {
"cluster" : {
"routing" : {
"allocation" : {
"disk" : {
"watermark" : {
"low" : "88%",
"flood_stage" : "100%",
"high" : "93%"
}
}
}
}
}
}
}
AFAIK, the format/hierarchy is the same with ES8, and haven't changed for ages 🤔
from elasticsearch_exporter.
Ooooh, by querying it with include_defaults=true
(like the exporter), we can see the following in the defaults
section:
ES 7.17:
"disk" : {
"threshold_enabled" : "true",
"watermark" : {
"enable_for_single_data_node" : "false",
"flood_stage" : {
"frozen" : "95%",
"frozen.max_headroom" : "20GB"
}
},
"include_relocations" : "true",
"reroute_interval" : "60s"
ES 8.12:
"disk" : {
"threshold_enabled" : "true",
"reroute_interval" : "60s",
"watermark" : {
"flood_stage" : {
"frozen" : "95%",
"frozen.max_headroom" : "20GB",
"max_headroom" : "-1"
},
"high" : {
"max_headroom" : "-1"
},
"low" : {
"max_headroom" : "-1"
},
"enable_for_single_data_node" : "true"
}
},
So we can have an entry in persistent
as cluster.routing.allocation.disk.watermark.low
, and in defaults
as cluster.routing.allocation.disk.watermark.low.max_headroom
, can the problem comes from here?
from elasticsearch_exporter.
Related Issues (20)
- Raise version for Debian HOT 1
- Is there a relationship between index names and instances? HOT 1
- In the latest version 1.7.0, is the code Envar("ES_URI") missing for retrieving the value of es.uri? Currently, when transmitted via ES_URI, it is still bound to the default address. HOT 2
- Metric `elasticsearch_cluster_health_up` removed in v1.7.0
- Elastisearch Export 1.1.0 not collecting many metrics on elasticsearch 7.17
- elasticsearch exporter used too much memory ,is it normal
- msg="failed to get cluster info" err="Get \"http://localhost:9200/\": dial tcp 127.0.0.1:9200: connect: connection refused" HOT 1
- Grafana Dashboard Contains Soon-to-Be-Deprecated Panels HOT 4
- exporter behind reverse proxy
- Expose node stats indexing pressure HOT 1
- 1.5.0版本的elasticsearch_exporter连接8.x.x版本的es报错不支持TLS HOT 1
- Is it possible use the internal Service/Endpoint from Elasticsearch?
- No data in HOT 7
- Missing cluster label on SLM information
- No snapshots available options on version 1.7.0 HOT 1
- Supports dynamic transmission of es cluster link information
- Fail to retrieve data from ELK 8.1.1,Is it possible that this version does not support Elasticsearch versions 8.X? HOT 5
- I wish es_exporter could include metrics for the health status of each shard or index, such as whether they are unassigned or healthy
- It is unclear how to run the Windows version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch_exporter.