github.com/m3db/m3@v1.5.0/scripts/comparator/grafana/dashboard.tmpl (about)

     1  {
     2    "annotations": {
     3      "list": [
     4        {
     5          "builtIn": 1,
     6          "datasource": "-- Grafana --",
     7          "enable": true,
     8          "hide": true,
     9          "iconColor": "rgba(0, 211, 255, 1)",
    10          "name": "Annotations & Alerts",
    11          "type": "dashboard"
    12        }
    13      ]
    14    },
    15    "editable": true,
    16    "gnetId": null,
    17    "graphTooltip": 0,
    18    "id": 1,
    19    "links": [],
    20    "panels": [
    21    {{range $i, $v := .Queries}}{{if $i}},{{end}}
    22      {
    23        "collapsed": true,
    24        "datasource": null,
    25        "gridPos": {
    26          "h": 1,
    27          "w": 24,
    28          "x": 0,
    29          "y": 0
    30        },
    31        "id": {{$v.Index}},
    32        "panels": [{{range $idx, $q := $v.Queries }}{{with $q}}{{if $idx}},{{end}}
    33          {
    34            "aliasColors": {},
    35            "bars": false,
    36            "dashLength": 10,
    37            "dashes": false,
    38            "datasource": "-- Mixed --",
    39            "fill": 1,
    40            "fillGradient": 0,
    41            "gridPos": {
    42              "h": 9,
    43              "w": 12,
    44              "x": {{if .Left}}0{{else}}12{{end}},
    45              "y": 0
    46            },
    47            "id": {{.Index}},
    48            "legend": {
    49              "avg": false,
    50              "current": false,
    51              "max": false,
    52              "min": false,
    53              "show": true,
    54              "total": false,
    55              "values": false
    56            },
    57            "lines": true,
    58            "linewidth": 1,
    59            "nullPointMode": "null",
    60            "options": {
    61              "dataLinks": []
    62            },
    63            "percentage": false,
    64            "pointradius": 2,
    65            "points": false,
    66            "renderer": "flot",
    67            "seriesOverrides": [],
    68            "spaceLength": 10,
    69            "stack": false,
    70            "steppedLine": false,
    71            "targets": [
    72              {
    73                "datasource": "M3Query",
    74                "expr": "{{.Query}}",
    75                "hide": false,
    76                "interval": "{{.Interval}}",
    77                "legendFormat": "m3",
    78                "refId": "A"
    79              },
    80              {
    81                "datasource": "Prometheus",
    82                "expr": "{{.Query}}",
    83                "hide": false,
    84                "interval": "{{.Interval}}",
    85                "legendFormat": "prom",
    86                "refId": "B"
    87              }
    88            ],
    89            "thresholds": [],
    90            "timeFrom": null,
    91            "timeRegions": [],
    92            "timeShift": null,
    93            "title": "{{.Query}} : {{.Interval}}",
    94            "tooltip": {
    95              "shared": true,
    96              "sort": 0,
    97              "value_type": "individual"
    98            },
    99            "type": "graph",
   100            "xaxis": {
   101              "buckets": null,
   102              "mode": "time",
   103              "name": null,
   104              "show": true,
   105              "values": []
   106            },
   107            "yaxes": [
   108              {
   109                "format": "short",
   110                "label": null,
   111                "logBase": 1,
   112                "max": null,
   113                "min": null,
   114                "show": true
   115              },
   116              {
   117                "format": "short",
   118                "label": null,
   119                "logBase": 1,
   120                "max": null,
   121                "min": null,
   122                "show": true
   123              }
   124            ],
   125            "yaxis": {
   126              "align": false,
   127              "alignLevel": null
   128            }
   129          }{{end}}{{end}}
   130        ],
   131        "title": "{{$v.QueryGroup}}",
   132        "type": "row"
   133      }
   134    {{end}}
   135    ],
   136    "refresh": false,
   137    "schemaVersion": 20,
   138    "style": "dark",
   139    "tags": ["queries"],
   140    "templating": {
   141      "list": []
   142    },
   143    "time": {
   144      "from": "{{.Start}}",
   145      "to": "{{.End}}"
   146    },
   147    "timepicker": {
   148      "refresh_intervals": [
   149        "5s",
   150        "10s",
   151        "30s",
   152        "1m",
   153        "5m",
   154        "15m",
   155        "30m",
   156        "1h",
   157        "2h",
   158        "1d"
   159      ]
   160    },
   161    "timezone": "",
   162    "title": "Dashboard {{.Revision}}",
   163    "uid": "{{.Revision}}",
   164    "version": 1
   165  }