Open gtirloni opened 1 year ago
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
Why is this needed:
Our data sources are named "env1 Prometheus", "env2 Prometheus", "envN Prometheus" because we also have "env1 Loki", "env2 Loki", etc and the data source cannot have the same name, even if they are of different types.
In our dashboards, we have a
environment
data source variable that selects all data sources of a given type.The variable shows these suffixes that are not really part of the environment name. We would like to show only the proper environment name to reduce user confusion (e.g. "env1" instead of "env1 Prometheus"). Some users are very non-technical and get confused with names like data sources, Prometheus, Loki, etc.
What would you like to be added:
By supporting regular expression groups, it would be possible to display the extracted values.
There needs to be a way to template the display value while still retaining the actual value, so the correct data source is used.
This is similar to #1032 but not quite.
Who is this feature for?
Grafana administrators and dashboard editors.