Grafana doesn’t work with ES8 really. If you want to manage indexes, like delete them based on time, you can’t use Elasticsearch Curator because Curator doesn’t support Elasticsearch 8. And you can’t use datastreams with index lifecycle management because it seems that that isn’t supported in Grafana. Indexes with lifecycle management have numbers at the end (e.g. myindex-000023). Grafana doesn’t support that. So ES8 and Grafana don’t really work together. When will they?
Elastic 7.17.x end of life is in less than 10 months: 2023-08-01