Formatting legend in grafana with prometheus source + adding sometext

reading the docs here on formatting the legend in grafana from prometheus source.

I want to have all inside the {} from prometheus to show with some text appended eg the name of the counter

so instead of speifying the parameters {{method}} - {{status}} I want to have all inside the curly brackets followed by some text {<all inside the curly brackets>} someText.
in this case the someText is the counter name.
For example leaving the legend bland will show all inside the curly brackets but then it won’t show the counter name, because I am using the rate in my query.

  • What Grafana version and what operating system are you using?
    8.04

  • What are you trying to achieve?
    above

  • How are you trying to achieve it?
    above

  • What happened?
    above

  • What did you expect to happen?
    above

  • Can you copy/paste the configuration(s) that you are having problems with?
    above

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    n/a

  • Did you follow any online instructions? If so, what is the URL?
    above

ref1

This topic was automatically closed after 365 days. New replies are no longer allowed.