Copy panel JSON

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

Grafana v11.3.1 (b58701869e) on Arch Linux

Since it’s about the WebUI, I’m using Firefox 133.0.3 (on Arch Linux too).

  • What are you trying to achieve?

I’m trying to copy the thresholds of a panel to another.

  • How are you trying to achieve it?

Via the Panel JSON because I didn’t find another way to do it. Maybe it’s not the best way?

  • What happened?

Copying Panel JSON don’t work. I’m only getting a fragment of what I selected.

  • What did you expect to happen?

I’m expecting that pressing Ctrl-C or right-click → Copy will copy the whole selection.

Copying this…

…give me that when I paste it:

      "thresholds": {
        "mode": "absolute",
…            "color": "red",
            "value": 87.5
          }
        ]
      },
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

There is no error.

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

No, since I didn’t found any instruction on how to copy only the thresholds without using the JSON, which seems pretty straightforward, but don’t work.

Thanks.

1 Like

what happens when you paste it into notepad++

Sorry for the late answer. I got the exact same result in any editor as the one I gave in the first message when I paste it. So I concluded that the problem is when I copy it.

1 Like