Grafana dashboard: Node Cert Exporter
Description: https://github.com/amimof/node-cert-exporter

A dashboard that displays SSL certificate expiry on nodes in a Kubernetes cluster. Uses Prometheus [node-cert-exporter](https://github.com/amimof/node-cert-exporter), therefor it must be installed and deployed in the cluster in order for this dashboard to display anything meaningful. Read the [README](https://github.com/amimof/node-cert-exporter/blob/master/README.md) for information on how to deploy node-cert-exporter in your cluster.

# Requirements
* [Prometheus](https://prometheus.io)
* [node-cert-exporter](https://github.com/amimof/node-cert-exporter)

Make sure to read this awesome article of how to monitor SSL certificates with node-cert-exporter, Prometheus, AlertManager and Grafana at [devconnected.com](https://devconnected.com/how-to-check-ssl-certificate-expiration-with-grafana/)

{
  "__inputs": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "https://github.com/amimof/node-cert-exporter",
  "editable": true,
  "gnetId": 9999,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "columns": [],
      "fontSize": "100%",
      "gridPos": {
        "h": 16,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 3,
        "desc": false
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "alias": "Expires In",
          "colorMode": "cell",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "Value",
          "thresholds": [
            "7889231.49",
            "15778463"
          ],
          "type": "number",
          "unit": "dtdurations"
        },
        {
          "alias": "Node",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "kubernetes_pod_node_name",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Path",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": false,
          "mappingType": 1,
          "pattern": "path",
          "preserveFormat": false,
          "sanitize": false,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "sum(ssl_certificate_expiry_seconds{}) by (instance, path)",
          "format": "table",
          "instant": true,
          "interval": "15s",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "title": "Node Certificates",
      "transform": "table",
      "type": "table"
    }
  ],
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "kubernetes",
    "node-cert-exporter"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Node Cert Exporter",
  "uid": "F_gILm6iz",
  "version": 1
}