I want to review and graph the use of elasticsearch shards and how to fix it

  • What Grafana version and what operating system are you using?
    8.2.3

  • What are you trying to achieve?
    Review and graph the use of shards/shards

  • How are you trying to achieve it?
    I want to prevent you not from having snippets available to use in elastichsearch

  • What happened?
    I filled up the available shards

  • What did you expect to happen?
    It didn’t record fragments

  • Can you copy/paste the configuration(s) that you are having problems with?
    curl -XGET http://ip:9200/_cluster/health?pretty
    {
    “cluster_name” : “elasticsearch”,
    “status” : “yellow”,
    “timed_out” : false,
    “number_of_nodes” : 1,
    “number_of_data_nodes” : 1,
    “active_primary_shards” : 2500,
    “active_shards” : 2500,
    “relocating_shards” : 0,
    “initializing_shards” : 0,
    “unassigned_shards” : 2500,
    “delayed_unassigned_shards” : 0,
    “number_of_pending_tasks” : 0,
    “number_of_in_flight_fetch” : 0,
    “task_max_waiting_in_queue_millis” : 0,
    “active_shards_percent_as_number” : 50.0
    }

curl -s -XGET http://ip:9200/_cat/shards | wc -l
5000

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    It didn’t record data

  • Did you follow any online instructions? If so, what is the URL?

welcome

which data points from theae data points do you want to visualize. are we missing the shards json data?

graphically shards and non-shards

all of the following data points?

{
“cluster_name” : “elasticsearch”,
“status” : “yellow”,
“timed_out” : false,
“number_of_nodes” : 1,
“number_of_data_nodes” : 1,
“active_primary_shards” : 2500,
“active_shards” : 2500,
“relocating_shards” : 0,
“initializing_shards” : 0,
“unassigned_shards” : 2500,
“delayed_unassigned_shards” : 0,
“number_of_pending_tasks” : 0,
“number_of_in_flight_fetch” : 0,
“task_max_waiting_in_queue_millis” : 0,
“active_shards_percent_as_number” : 50.0
}

Exactly how I do it?

Query your data using elastic search or infinity plugin then choose gauge visualization

I can’t install the infinity plugins

This plugin doesn’t support your version of Grafana.

Do I have any options to do it with curl?

just use elastic search plugin then. what version of grafana do you have?

8.2.3

use elasticsearch plugin, your grafana is old.

I already have ElasticSearch installed, how would I perform a query with curl to graph in Grafana?