github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/velodrome/grafana-stack/dashboards/k8s-contributor-metrics.json (about)

     1  {
     2    "__inputs": [
     3      {
     4        "name": "DS_MYSQL",
     5        "label": "mysql",
     6        "description": "",
     7        "type": "datasource",
     8        "pluginId": "mysql",
     9        "pluginName": "MySQL"
    10      }
    11    ],
    12    "__requires": [
    13      {
    14        "type": "grafana",
    15        "id": "grafana",
    16        "name": "Grafana",
    17        "version": "4.4.2"
    18      },
    19      {
    20        "type": "datasource",
    21        "id": "mysql",
    22        "name": "MySQL",
    23        "version": "1.0.0"
    24      },
    25      {
    26        "type": "panel",
    27        "id": "table",
    28        "name": "Table",
    29        "version": ""
    30      }
    31    ],
    32    "annotations": {
    33      "list": []
    34    },
    35    "editable": true,
    36    "gnetId": null,
    37    "graphTooltip": 0,
    38    "hideControls": false,
    39    "id": null,
    40    "links": [],
    41    "rows": [
    42      {
    43        "collapse": false,
    44        "height": 480,
    45        "panels": [
    46          {
    47            "columns": [],
    48            "datasource": "${DS_MYSQL}",
    49            "fontSize": "100%",
    50            "id": 1,
    51            "links": [],
    52            "pageSize": null,
    53            "scroll": true,
    54            "showHeader": true,
    55            "sort": {
    56              "col": 1,
    57              "desc": true
    58            },
    59            "span": 6,
    60            "styles": [
    61              {
    62                "alias": "Time",
    63                "dateFormat": "YYYY-MM-DD HH:mm:ss",
    64                "pattern": "Time",
    65                "type": "date"
    66              },
    67              {
    68                "alias": "",
    69                "colorMode": null,
    70                "colors": [
    71                  "rgba(245, 54, 54, 0.9)",
    72                  "rgba(237, 129, 40, 0.89)",
    73                  "rgba(50, 172, 45, 0.97)"
    74                ],
    75                "decimals": 2,
    76                "pattern": "/.*/",
    77                "thresholds": [],
    78                "type": "number",
    79                "unit": "short"
    80              }
    81            ],
    82            "targets": [
    83              {
    84                "alias": "",
    85                "dsType": "influxdb",
    86                "format": "table",
    87                "groupBy": [
    88                  {
    89                    "params": [
    90                      "$__interval"
    91                    ],
    92                    "type": "time"
    93                  },
    94                  {
    95                    "params": [
    96                      "null"
    97                    ],
    98                    "type": "fill"
    99                  }
   100                ],
   101                "orderByTime": "ASC",
   102                "policy": "default",
   103                "rawSql": "SELECT user \"Github Login\", count(user)  \"Number of Comments\"\nfrom comments \nWHERE user not like \"%bot%\" and user not like \"%testing%\"\nAND comment_created_at > CURRENT_DATE - INTERVAL 1 MONTH\ngroup by user order by \"PRs and Issues Commented On\" Desc;",
   104                "refId": "A",
   105                "resultFormat": "time_series",
   106                "select": [
   107                  [
   108                    {
   109                      "params": [
   110                        "value"
   111                      ],
   112                      "type": "field"
   113                    },
   114                    {
   115                      "params": [],
   116                      "type": "mean"
   117                    }
   118                  ]
   119                ],
   120                "tags": []
   121              }
   122            ],
   123            "title": "Top Commenters (All Repos; Last 30 Days)",
   124            "transform": "table",
   125            "type": "table"
   126          }
   127        ],
   128        "repeat": null,
   129        "repeatIteration": null,
   130        "repeatRowId": null,
   131        "showTitle": false,
   132        "title": "Dashboard Row",
   133        "titleSize": "h6"
   134      }
   135    ],
   136    "schemaVersion": 14,
   137    "style": "dark",
   138    "tags": [],
   139    "templating": {
   140      "list": []
   141    },
   142    "time": {
   143      "from": "now-6h",
   144      "to": "now"
   145    },
   146    "timepicker": {
   147      "refresh_intervals": [
   148        "5s",
   149        "10s",
   150        "30s",
   151        "1m",
   152        "5m",
   153        "15m",
   154        "30m",
   155        "1h",
   156        "2h",
   157        "1d"
   158      ],
   159      "time_options": [
   160        "5m",
   161        "15m",
   162        "1h",
   163        "6h",
   164        "12h",
   165        "24h",
   166        "2d",
   167        "7d",
   168        "30d"
   169      ]
   170    },
   171    "timezone": "",
   172    "title": "K8s Contributor Metrics",
   173    "version": 4
   174  }