This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic content in repeated row/panel title #28601
Comments
@badrpc what happens if you create a hidden query variable with label_values(ifName{instance="$device"},ifName)? Couldn't you use that hidden variable as the title for the rows? Regarding if this is a reasonable feature request I don't think we want to introduce more variable types except if there is a lot of demand from the community. |
That's what I tried to explain when described the ifName variable (I wasn't very clear I guess). Basically with another variable defined as I haven't had a chance to look at the code yet. From UI perspective it doesn't actually look like a new type of variable - rather a new evaluation mode. Currently there are Never, On Dashboard Load and On Time Rage Change. So if a variable was evaluated "Per each repeated row/panel" it could work I suppose. But I don't know how much work that would require. |
And since you mentioned demand from the community there is #1032. Maybe I misread it but I don't think it was properly resolved. It was closed with a merge of #27829. But the latter only allows for statically configured mapping which I think is not what many people on that feature request were talking about. And complexity of suggested workarounds there is just terrible - from an extra table/database to a dedicated service to perform mapping. |
@badrpc gotcha: and thank you for clarifying this, I'll reopen that issue. I can tell with some confidence that we will not add We're working on the next generation of dashboards that can be more dynamic but that is far from being done. I'm sorry that I can't come up with any other alternatives @badrpc |
We're in the process of moving Grafana feature requests to GitHub Discussions. This issue is being moved to Discussions or has been moved from our issues list, depending on where you're seeing this message. We hope to use the discussion thread to continue building use cases, and additional evidence based on engagement/voting, in order to help us prioritize this feature request later on down the road. As with all things Grafana, we value your input and participation in this project and appreciate your patience during this transitional period. Looking forward to the discussion! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I have some data describing network interfaces in Prometheus fetched via SNMP. These data is indexed with ifIndex metric:
and using ifIndex one can get descriptions:
and performance metrics:
I have a dashboard with variables:
device:
label_values(up{job="snmp_exporter"}, instance)
ifIndex:
query_result(ifIndex{instance="${device}"})
User selects a device in a drop-down list and dashboard has a row per each ifIndex with performance metrics. Unfortunately all rows look very similar and it is very hard to understand which row correspond to which interface. The best thing I could do is include ifIndex in the row or panel title. But ifIndex is a technical detail of the hardware and not very useful to the user: (indices don't necessarily correspond to interface numbers, there are some internal interfaces and so on). So what would be useful is to have ifName in the row title. Unfortunately I cannot find a working solution for this.
I have tried adding ifName variable to the dashboard and that would work if a single ifIndex was selected in UI, but showing only one interface at a time would limit usefulness of the dashboard. Unfortunately as soon as I select multiple values for ifIndex, ifName variable would also get multiple values.
It appears that I could probably get what I want if row/panel title allowed calling
label_values(ifName{instance="$device"},ifName)
function (the one available in variable definitions). Another possible option I can think of is to have a special type of a variable reevaluated for each repeated row or panel.Does this sound as a reasonable feature request or are there any other way to implement what I need?
The text was updated successfully, but these errors were encountered: