ssube/prometheus-sql-adapter

View on GitHub
grafana/meta/catalog.json

Summary

Maintainability
Test Coverage
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": 16,
  "iteration": 1576459621441,
  "links": [],
  "panels": [
    {
      "columns": [],
      "datasource": "monitor-timescale",
      "fontSize": "100%",
      "gridPos": {
        "h": 12,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "options": {},
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 2,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT * FROM cat_instance WHERE instance LIKE '$instancefilter' AND node LIKE '$nodefilter' AND name LIKE '$namefilter';",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Instance Catalog",
      "transform": "table",
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "monitor-timescale",
      "fontSize": "100%",
      "gridPos": {
        "h": 12,
        "w": 24,
        "x": 0,
        "y": 12
      },
      "id": 3,
      "options": {},
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 1,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "SELECT * FROM cat_container WHERE instance LIKE '$instancefilter' AND name LIKE '$namefilter' AND pod LIKE '$podfilter';",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Container Catalog",
      "transform": "table",
      "type": "table"
    }
  ],
  "schemaVersion": 20,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "%",
          "value": "%"
        },
        "hide": 0,
        "label": "Name Filter",
        "name": "namefilter",
        "options": [
          {
            "text": "%memory%",
            "value": "%memory%"
          }
        ],
        "query": "%memory%",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "text": "%",
          "value": "%"
        },
        "hide": 0,
        "label": "Node Filter",
        "name": "nodefilter",
        "options": [
          {
            "text": "%",
            "value": "%"
          }
        ],
        "query": "%",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "text": "%",
          "value": "%"
        },
        "hide": 0,
        "label": "Pod Filter",
        "name": "podfilter",
        "options": [
          {
            "text": "%",
            "value": "%"
          }
        ],
        "query": "%",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "text": "%",
          "value": "%"
        },
        "hide": 0,
        "label": "Instance Filter",
        "name": "instancefilter",
        "options": [
          {
            "text": "%",
            "value": "%"
          }
        ],
        "query": "%",
        "skipUrlSync": false,
        "type": "textbox"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Schema Catalog",
  "uid": "VAu1ueaWk",
  "version": 11
}