Skip to content

Add two Elasticsearch panels to the Grafana search dashboard.#4121

Draft
koetsier wants to merge 1 commit into
mainfrom
elasticsearch_grafana
Draft

Add two Elasticsearch panels to the Grafana search dashboard.#4121
koetsier wants to merge 1 commit into
mainfrom
elasticsearch_grafana

Conversation

@koetsier
Copy link
Copy Markdown
Contributor

@koetsier koetsier commented Mar 2, 2026

Add two Elasticsearch panels to the Grafana search dashboard.

Adds two metrics:

  • Percentage of free deskspace per node (labelled by node name)
  • Cluster health green, yellow, red
Screenshot 2026-03-02 at 16 28 46

Jira: https://gov-uk.atlassian.net/browse/SCH-1669

Copy link
Copy Markdown
Contributor

@stringiest stringiest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very exciting! 🌟

Just a couple of questions about whether we could name the charts more explicitly.

"refId": "A"
}
],
"title": "Cluster Status",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be 'Elasticsearch Cluster Status', for clarity?

"type": "prometheus",
"uid": "prometheus"
},
"description": "Green: Cluster operates normally\nYellow: Primary shards allocated, but some replica shards unassigned\nRed: Primary shards unallocated",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be useful to add something to describe the purple status too?

Copy link
Copy Markdown
Contributor Author

@koetsier koetsier Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purple status cannot really happen and is returned if ES returns something it isn't supposed to - it is the 'other' case in a case statement

Comment on lines +1914 to +1923
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this bit make the shaded areas on the chart? Couldn't see them on the image included in the PR description.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know what this does :). This code is generated by Grafana and the result was what I screenshotted

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I was expecting that it would do the colour grading like on the Search API V2 latency graphs. E.g.
Screenshot 2026-03-03 at 10 13 53

"refId": "A"
}
],
"title": "Percent disk space free",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above, could this title include 'Elasticsearch' for clarity?

Adds two metrics:

Percentage of free deskspace per node (labelled by node name)
cluster health green, yellow, red
@koetsier koetsier force-pushed the elasticsearch_grafana branch from 8b05de2 to cf2d578 Compare March 2, 2026 20:16
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

Successfully merging this pull request may close these issues.

2 participants