-
What Grafana version and what operating system are you using?
Grafana v9.0.4 on Windows 10 -
What are you trying to achieve?
I have a InfluxDB database and query data with influx plugin.
Now I will show some date in multiple panels without separate query in each panel, to save RAM and time .
On one panel I will only show the result of the query variable on other panels the result should be expanded by more queries -
How are you trying to achieve it?
I added an query variable to the dashboard, but I don´t know how to show that query on a panel ore combine the result with other queries -
What happened?
Nothing -
What did you expect to happen?
Show query result on panel
Take a look at
mikhailvolkov
How can I plot time series with this plugin?
I don’t need to add styled text or tables.
@nick135 Your original question does not describe the type of data.
For time-series look at
@mikhailvolkov ECharts looks interesting.
When I chose ECharts, the Function Windows is filled with default code and show my query.
But the name of the series is A or B (query name) and refId. How can I change this like the default “time series”?
And how can I use the dashboard query variable?
When I write “${TemperatureQuery}” I get an error.
const series = data.series.map((s) => {
//const series = ${TemperatureQuery}.series.map((s) => {
const sData = s.fields.find((f) => f.type === 'number').values.buffer;
const sTime = s.fields.find((f) => f.type === 'time').values.buffer;
return {
name: s.refId,
type: 'line',
showSymbol: false,
lineStyle: {
width: 1,
},
data: sData.map((d, i) => [sTime[i], d.toFixed(2)]),
};
});
Data source is InfluxDB
@nick135 There is no visual interface like TimeSeries to allow it to be as customizable as possible and support various use cases, which is impossible with default Grafana plugins.
Most of the concepts explained in the documentation Apache ECharts Panel | Volkov Labs and YouTube tutorials:
Rereading your question, you can reuse queries from other panels using the --Dashboard--
data source:
@mikhailvolkov How I understand --Dashboard-- I can only display the result of another panel, but can’t extend with additional query.
This is what I’m looking for: