Dear all,
-
What Grafana version and what operating system are you using?
Grafana 7.5.2 -
What are you trying to achieve?
I have an elasticsearch index with some docs having 2 fixed metrics and one metric changing with time. The index looks like this:
{
“_index” : “timeseries_ind”,
“_type” : “_doc”,
“_id” : “c7IY74IBjASA87Oy-d2C”,
“_score” : 1.0,
“_source” : {
“metric1” : “test”,
“metric2” : “project_test”,
“data” : [
{
“metric3” : 520.4,
“timestamp” : 1631541600000
},
{
“metric3” : 570.4,
“timestamp” : 1631451600000
}
]
}
}
]
}
In this example, we have only 2 timestamps but in a real case, we have 1000s of timestamps. So we decided to group our data like this -
How are you trying to achieve it?
I am trying to create a grafana dashboard and plot a timeseries graph for metric3.
In the index configuration in Grafana, I chose “data.timestamp” in “Time field name” and I see no error.
When trying to plot the graph, I chose data.metric3 and data.timestamp but I see nothing. Even the query returns no values. (see screenshot)
Am I missing something and is there a specific configuration to make this work
-
What happened?
I see empty plots and the query returns nothing -
What did you expect to happen?
The data to be plotted