---
# Work in progress
# This dashboard shows all the services in the cluster and the version
apiVersion: v1
kind: ConfigMap
metadata:
  name: services-version-dashboard
  labels:
    grafana_dashboard: "1"
data:
  services-version-dashboard.json: |-
    {
    "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": 35,
    "links": [],
    "panels": [
        {
        "datasource": "Thanos",
        "fieldConfig": {
            "defaults": {
            "custom": {
                "align": null
            },
            "mappings": [],
            "thresholds": {
                "mode": "absolute",
                "steps": [
                {
                    "color": "green",
                    "value": null
                },
                {
                    "color": "red",
                    "value": 80
                }
                ]
            }
            },
            "overrides": []
        },
        "gridPos": {
            "h": 23,
            "w": 24,
            "x": 0,
            "y": 0
        },
        "id": 2,
        "options": {
            "showHeader": true
        },
        "pluginVersion": "7.0.3",
        "targets": [
            {
            "expr": "kube_pod_container_info{image =~ \".*azurecr.*\"} == 1",
            "format": "table",
            "instant": true,
            "interval": "",
            "legendFormat": "",
            "refId": "A"
            }
        ],
        "timeFrom": null,
        "timeShift": null,
        "title": "Services Version",
        "transformations": [
            {
            "id": "organize",
            "options": {
                "excludeByName": {
                "Value": true,
                "__name__": true,
                "container_id": true,
                "endpoint": true,
                "image_id": true,
                "instance": true,
                "job": true,
                "pod": true,
                "prometheus": true,
                "service": true
                },
                "indexByName": {},
                "renameByName": {}
            }
            }
        ],
        "type": "table"
        }
    ],
    "schemaVersion": 25,
    "style": "dark",
    "tags": [],
    "templating": {
        "list": []
    },
    "time": {
        "from": "now-6h",
        "to": "now"
    },
    "timepicker": {
        "refresh_intervals": [
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
        ]
    },
    "timezone": "",
    "title": "Services Version",
    "uid": "KP7jKd7Mz",
    "version": 2
    }
