Skip to content

Retrieving the value of a repeating variable. #144

Answered by ZuperZee
psheehymn asked this question in Q&A
Discussion options

You must be logged in to vote

Ah. My bad, didn't notice you were using rows. I haven't really documented this anywhere, but you can use htmlGraphics.props.replaceVariables instead of getTemplateSrv().replace(). I will try to update the docs soon.

Entire JSON Model for the dashboard:

{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": 

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ZuperZee
Comment options

@psheehymn
Comment options

@ZuperZee
Comment options

Answer selected by ZuperZee
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants