How to set threshold background color of string metric in Canvas plugin?

  • What Grafana version and what operating system are you using?
    “version”: “9.3.0-beta.1”
  • What are you trying to achieve?
    Use Canvas plugin and I need to add background color for string metric. The color is changed according to the string.
    Example:
    Production => Green color
    QA => Yellow color
    Development => Orange color
    etc…
  • How are you trying to achieve it?
    I added item as metric value that is string. For now I use another numeric metric to set background that is not related at all.
  • What happened?
    I work, but not the good way to do that. Since I use one existed numeric value as “Response time ms”. This is not realted at all to the Environment string : Production, QA, Dev…
  • What did you expect to happen?
    How I can set the threshold on string metric that work as expected independently.
  • Can you copy/paste the configuration(s) that you are having problems with?
    N/A
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No errors
  • Did you follow any online instructions? If so, what is the URL?
    I didn’t find accurate data in the confluence except for :
    Canvas | Grafana documentation

Any update on this please?

Hi @mgeriesa,

I would recommend checking this GitHub discussion thread about the Canvas plugin as it seems to contain a lot of information and you might find (or ask) an answer to your question.