We have a Grafana dashboard with Prometheus as data source. Inside the dashboard, we have a row that will repeat based on the service(multi select variable) selected. The repeated rows will have panels for SLI mean.
My requirement is: I have to find the Mean for all the services(selected) in a single panel.
Here test-service, test-service-1 are the values selected from the service variable(multi select). One of the panel inside each row is 5min SLI mean. Below attached image will show the 5min SLI panel
Inside General Row I need a similar panel, But here SLI calculation should be the mean value of all the other 5min SLI panel.
Say, if 2 services are selected, we will have 2 rows as shown in the attached image. The 5m SLI(inside General row) should be the mean of those two services selected. If 2 more services selected(total 4 service), the 5m SLI panel inside General row should change by calculating mean from 4 other 5min SLI panels.
Note: I am new to Grafana, Sharing some steps/ideas will be appreciated.