Relative Content

Tag Archive for variablesiframeprometheusvisualizationgrafana

How to use variables in grafana’s iframe?

I’m using grafana’s iframe to embed images into my own web page, and to get the embed iframe I’m currently doing it directly using dashboard. Such as
< iframe SRC = "http://xxxxx:31637/d-solo/rpfmFFz7z/prometheus-stats? orgId=1&from=now-5m&to=now&panelId=16" width="450" height="200" frameborder="0"></iframe>
, but there is a problem with this. For example, when I want to obtain some data of the pod of a specified namespace, I cannot use variables to specify it. For example, when ABC logs in, the data of the namespace is ABC, and when BCA logs in, the data of BCA is displayed.