Elasticsearch : usage of runtime fields in Grafana

  • What Grafana version and what operating system are you using?
    V9.4.1 on linux

  • What are you trying to achieve?
    I defined some runtime fields in an elasticsearch index, and I would like to query them in a dashboard panel.

  • How are you trying to achieve it?
    I tried to use them in metrics or group by clauses, but the fields don’t appear in the list.

  • What happened?
    Nothing, the fields are not present.

  • What did you expect to happen?
    I expect the fields to be present in the list or a way to request them.

  • Can you copy/paste the configuration(s) that you are having problems with?

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

  • Did you follow any online instructions? If so, what is the URL?
    This one explains the concept of runtime fields :
    Runtime fields context | Painless Scripting Language [8.6] | Elastic

2 Likes

having the same problem. runtime fields or scripted fields don’t seem to pop up in grafana when I’m using elasticsearch as a data source

3 Likes

I opened an issue and a (not finished) pull request for this feature here: Support querying of runtime fields from Elasticsearch data sources · Issue #96028 · grafana/grafana · GitHub