apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana-dashboard-nginx-plus
data:
  NGINXPlusICDashboard.json: |
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "description": "A rich collection of Prometheus metrics from NGINX Plus Kubernetes Ingress Controller",
      "editable": true,
      "gnetId": 9614,
      "graphTooltip": 0,
      "id": 3,
      "iteration": 1603099772442,
      "links": [],
      "panels": [
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 0
          },
          "id": 122,
          "panels": [],
          "title": "Environment Metrics",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "datasource": "Prometheus",
          "description": "Status of the last NGINX Plus reload.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 0,
              "mappings": [
                {
                  "id": 0,
                  "op": "=",
                  "text": "N/A",
                  "type": 1,
                  "value": "null"
                },
                {
                  "id": 1,
                  "op": "=",
                  "text": "Successful",
                  "type": 1,
                  "value": "1"
                },
                {
                  "id": 2,
                  "op": "=",
                  "text": "Failure",
                  "type": 1,
                  "value": "0"
                }
              ],
              "nullValueMode": "connected",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(228, 0, 43)",
                    "value": null
                  },
                  {
                    "color": "rgb(228, 0, 43)",
                    "value": 0
                  },
                  {
                    "color": "rgb(0, 150, 57)",
                    "value": 1
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 5,
            "x": 0,
            "y": 1
          },
          "id": 81,
          "interval": null,
          "links": [
            {
              "targetBlank": true,
              "title": "NGINX Plus Dashboard",
              "url": "http://127.0.0.1:8080/dashboard.html"
            }
          ],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "fieldOptions": {
              "calcs": [
                "lastNotNull"
              ]
            },
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.0",
          "targets": [
            {
              "expr": "sum(nginx_ingress_controller_nginx_last_reload_status{kubernetes_pod_name=\"$controller\"})",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "NGINX Plus Reload",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "Prometheus",
          "description": "Number of successful NGINX Plus reloads.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 0,
              "mappings": [
                {
                  "id": 0,
                  "op": "=",
                  "text": "N/A",
                  "type": 1,
                  "value": "null"
                }
              ],
              "nullValueMode": "connected",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(0, 150, 57)",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 3,
            "x": 5,
            "y": 1
          },
          "id": 83,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "value",
            "fieldOptions": {
              "calcs": [
                "mean"
              ]
            },
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.0",
          "targets": [
            {
              "expr": "sum(nginx_ingress_controller_nginx_reloads_total{kubernetes_pod_name=\"$controller\"})",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Reloads",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "Prometheus",
          "description": "Number of unsuccessful NGINX Plus reloads.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [
                {
                  "id": 0,
                  "op": "=",
                  "text": "N/A",
                  "type": 1,
                  "value": "null"
                }
              ],
              "nullValueMode": "connected",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(0, 150, 57)",
                    "value": null
                  },
                  {
                    "color": "rgb(228, 0, 43)",
                    "value": 1
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 3,
            "x": 8,
            "y": 1
          },
          "id": 106,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "value",
            "fieldOptions": {
              "calcs": [
                "lastNotNull"
              ]
            },
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.0",
          "targets": [
            {
              "expr": "sum(nginx_ingress_controller_nginx_reload_errors_total{kubernetes_pod_name=\"$controller\"})",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Reload Errors",
          "type": "stat"
        },
        {
          "aliasColors": {
            "Received": "rgb(0, 150, 57)",
            "Sent": "rgb(255, 255, 255)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "Prometheus",
          "decimals": 2,
          "description": "Bytes received from clients and sent to clients.",
          "editable": true,
          "error": false,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 5,
          "grid": {},
          "gridPos": {
            "h": 6,
            "w": 11,
            "x": 11,
            "y": 1
          },
          "height": "200px",
          "hiddenSeries": false,
          "id": 32,
          "isNew": true,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": true,
            "sideWidth": 250,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.0",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum( rate(nginx_ingress_nginxplus_server_zone_received[5m]))",
              "format": "time_series",
              "instant": false,
              "interval": "10s",
              "intervalFactor": 1,
              "legendFormat": "Received",
              "metric": "network",
              "refId": "C",
              "step": 10
            },
            {
              "expr": "sum( rate(nginx_ingress_nginxplus_server_zone_sent[5m]))",
              "format": "time_series",
              "hide": false,
              "interval": "10s",
              "intervalFactor": 1,
              "legendFormat": "Sent",
              "metric": "network",
              "refId": "D",
              "step": 10
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Network I/O",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "Bps",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "Bps",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": "Prometheus",
          "description": "Last controller reload milliseconds.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [
                {
                  "from": "",
                  "id": 0,
                  "operator": "",
                  "text": "N/A",
                  "to": "",
                  "type": 1
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(0, 150, 57)",
                    "value": null
                  }
                ]
              },
              "unit": "ms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 5,
            "x": 0,
            "y": 4
          },
          "id": 128,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.0",
          "targets": [
            {
              "expr": "avg(nginx_ingress_controller_nginx_last_reload_milliseconds{kubernetes_pod_name=\"$controller\"})",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Last Reload Time",
          "type": "stat"
        },
        {
          "collapsed": true,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 7
          },
          "id": 118,
          "panels": [
            {
              "cacheTimeout": null,
              "datasource": "Prometheus",
              "description": "Total http requests per second looking back over the last 5 minutes.",
              "fieldConfig": {
                "defaults": {
                  "custom": {
                    "align": null
                  },
                  "mappings": [
                    {
                      "id": 0,
                      "op": "=",
                      "text": "N/A",
                      "type": 1,
                      "value": "null"
                    }
                  ],
                  "nullValueMode": "connected",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": null
                      }
                    ]
                  },
                  "unit": "none"
                },
                "overrides": []
              },
              "gridPos": {
                "h": 5,
                "w": 10,
                "x": 0,
                "y": 8
              },
              "id": 20,
              "interval": null,
              "links": [],
              "maxDataPoints": 100,
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum( irate(nginx_ingress_nginxplus_http_requests_total{kubernetes_pod_name=\"$controller\"}[5m]))",
                  "interval": "",
                  "legendFormat": "",
                  "refId": "A"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "HTTP Request Volume",
              "type": "stat"
            },
            {
              "datasource": "Prometheus",
              "description": "Total number of deployed Ingress .",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "decimals": 0,
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": null
                      }
                    ]
                  },
                  "unit": "none"
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 5,
                "x": 10,
                "y": 8
              },
              "id": 120,
              "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum(nginx_ingress_controller_ingress_resources_total)",
                  "interval": "",
                  "legendFormat": "",
                  "refId": "A"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Ingress Count",
              "type": "stat"
            },
            {
              "datasource": "Prometheus",
              "description": "Total http requests per second looking back over the last 5 minutes across all server zones.",
              "fieldConfig": {
                "defaults": {
                  "custom": {
                    "align": null
                  },
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": null
                      },
                      {
                        "color": "rgb(228, 0, 43)",
                        "value": 80
                      }
                    ]
                  }
                },
                "overrides": []
              },
              "gridPos": {
                "h": 5,
                "w": 9,
                "x": 15,
                "y": 8
              },
              "id": 86,
              "links": [],
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "repeat": null,
              "repeatDirection": "h",
              "targets": [
                {
                  "expr": "sum( irate(nginx_ingress_nginxplus_server_zone_requests{kubernetes_pod_name=\"$controller\"}[5m]))",
                  "format": "time_series",
                  "hide": false,
                  "instant": false,
                  "interval": "",
                  "intervalFactor": 5,
                  "legendFormat": "{{ ingress }}",
                  "metric": "network",
                  "refId": "A",
                  "step": 10
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Zone Request Volume",
              "type": "stat"
            },
            {
              "datasource": "Prometheus",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": null
                      }
                    ]
                  }
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 5,
                "x": 10,
                "y": 11
              },
              "id": 140,
              "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "center",
                "orientation": "auto",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum(nginx_ingress_controller_ingress_resources_total{type=\"master\"})",
                  "interval": "",
                  "legendFormat": "master",
                  "refId": "A"
                },
                {
                  "expr": "sum(nginx_ingress_controller_ingress_resources_total{type=\"minion\"})",
                  "interval": "",
                  "legendFormat": "minion",
                  "refId": "B"
                },
                {
                  "expr": "sum(nginx_ingress_controller_ingress_resources_total{type=\"regular\"})",
                  "interval": "",
                  "legendFormat": "regular",
                  "refId": "C"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Handled Ingress Resources",
              "type": "stat"
            },
            {
              "aliasColors": {
                "Informational": "rgb(204, 204, 204)",
                "Redirection": "rgb(29, 156, 211)",
                "Success": "rgb(0, 150, 57)"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "Prometheus",
              "decimals": null,
              "description": " 1|2|3xx response status codes.",
              "fieldConfig": {
                "defaults": {
                  "custom": {
                    "align": null
                  },
                  "links": [],
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "green",
                        "value": null
                      },
                      {
                        "color": "red",
                        "value": 80
                      },
                      {
                        "color": "#EAB839",
                        "value": 90
                      },
                      {
                        "color": "#6ED0E0",
                        "value": 100
                      }
                    ]
                  },
                  "unit": "cps"
                },
                "overrides": []
              },
              "fill": 1,
              "fillGradient": 5,
              "gridPos": {
                "h": 7,
                "w": 10,
                "x": 0,
                "y": 13
              },
              "hiddenSeries": false,
              "id": 101,
              "legend": {
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": true,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "percentage": false,
              "pluginVersion": "7.2.0",
              "pointradius": 2,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code=\"1xx\"}[5m])) by (ingress)",
                  "interval": "",
                  "legendFormat": "Informational",
                  "refId": "A"
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code=\"2xx\"}[5m]))",
                  "interval": "",
                  "legendFormat": "Success",
                  "refId": "B"
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code=\"3xx\"}[5m]))",
                  "format": "time_series",
                  "hide": false,
                  "instant": false,
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "Redirection",
                  "metric": "container_memory_usage:sort_desc",
                  "refId": "C",
                  "step": 10
                }
              ],
              "thresholds": [],
              "timeFrom": null,
              "timeRegions": [],
              "timeShift": null,
              "title": "Success Rates Over Time",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
              },
              "yaxes": [
                {
                  "format": "cps",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "aliasColors": {
                "4xx": "dark-red",
                "5xx": "dark-orange",
                "Client Errors": "rgb(242, 154, 54)",
                "Server Errors": "rgb(228, 0, 43)",
                "max - istio-proxy": "#890f02",
                "max - master": "#bf1b00",
                "max - prometheus": "#bf1b00"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "Prometheus",
              "decimals": 0,
              "description": " 4|5xx response status codes.",
              "editable": false,
              "error": false,
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "links": []
                },
                "overrides": []
              },
              "fill": 1,
              "fillGradient": 5,
              "grid": {},
              "gridPos": {
                "h": 7,
                "w": 9,
                "x": 15,
                "y": 13
              },
              "hiddenSeries": false,
              "id": 87,
              "isNew": true,
              "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "hideEmpty": true,
                "hideZero": false,
                "max": false,
                "min": false,
                "rightSide": false,
                "show": true,
                "sideWidth": 300,
                "sort": "avg",
                "sortDesc": true,
                "total": true,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "options": {
                "alertThreshold": true
              },
              "percentage": false,
              "pluginVersion": "7.2.0",
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code=~\"[4].*\"}[2m]))",
                  "format": "time_series",
                  "instant": false,
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "Client Errors",
                  "metric": "container_memory_usage:sort_desc",
                  "refId": "C",
                  "step": 10
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code=~\"[5].*\"}[2m]))",
                  "format": "time_series",
                  "instant": false,
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "Server Errors",
                  "metric": "container_memory_usage:sort_desc",
                  "refId": "D",
                  "step": 10
                }
              ],
              "thresholds": [],
              "timeFrom": null,
              "timeRegions": [],
              "timeShift": null,
              "title": "Error Rates Over Time",
              "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 1,
                "value_type": "cumulative"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
              },
              "yaxes": [
                {
                  "format": "none",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "datasource": "Prometheus",
              "description": "Current State of the NGINX Ingress Controller.",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "mappings": [
                    {
                      "from": "",
                      "id": 0,
                      "operator": "",
                      "text": "N/A",
                      "to": "",
                      "type": 1
                    },
                    {
                      "from": "",
                      "id": 1,
                      "operator": "",
                      "text": "UP",
                      "to": "",
                      "type": 1,
                      "value": "1"
                    },
                    {
                      "from": "",
                      "id": 2,
                      "operator": "",
                      "text": "DOWN",
                      "to": "",
                      "type": 1,
                      "value": "0"
                    }
                  ],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "green",
                        "value": null
                      },
                      {
                        "color": "rgb(228, 0, 43)",
                        "value": 0
                      },
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": 1
                      }
                    ]
                  }
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 5,
                "x": 10,
                "y": 14
              },
              "id": 132,
              "links": [
                {
                  "targetBlank": true,
                  "title": "NGINX Plus Dashboard",
                  "url": "http://127.0.0.1:8080/dashboard.html#"
                }
              ],
              "options": {
                "colorMode": "background",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum(nginx_ingress_nginxplus_up{kubernetes_pod_name=\"$controller\"})",
                  "interval": "",
                  "legendFormat": "",
                  "refId": "A"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Ingress State",
              "type": "stat"
            },
            {
              "cacheTimeout": null,
              "datasource": "Prometheus",
              "description": "Non-4|5xx response status codes divided by total number of response status codes.",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "mappings": [
                    {
                      "id": 0,
                      "op": "=",
                      "text": "N/A",
                      "type": 1,
                      "value": "null"
                    }
                  ],
                  "nullValueMode": "connected",
                  "thresholds": {
                    "mode": "percentage",
                    "steps": [
                      {
                        "color": "rgb(228, 0, 43)",
                        "value": null
                      },
                      {
                        "color": "rgb(242, 154, 54)",
                        "value": 90
                      },
                      {
                        "color": "rgb(255, 242, 0)",
                        "value": 95
                      },
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": 99.9999
                      }
                    ]
                  },
                  "unit": "percentunit"
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 5,
                "x": 10,
                "y": 17
              },
              "id": 21,
              "interval": null,
              "links": [],
              "maxDataPoints": 100,
              "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_server_zone_responses{code!~\"[4-5].*\"}[5m])) / sum(rate(nginx_ingress_nginxplus_server_zone_responses[5m]))",
                  "format": "time_series",
                  "hide": false,
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "",
                  "refId": "B",
                  "step": 4
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Request Success Rate",
              "type": "stat"
            }
          ],
          "title": "Ingress Metrics",
          "type": "row"
        },
        {
          "collapsed": true,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 8
          },
          "id": 134,
          "panels": [
            {
              "aliasColors": {
                "Informational": "rgb(204, 204, 204)",
                "Redirection": "rgb(78, 67, 164)",
                "Success": "rgb(0, 150, 57)"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "Prometheus",
              "description": "Upstream success rate Over Time.",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "links": []
                },
                "overrides": []
              },
              "fill": 1,
              "fillGradient": 5,
              "gridPos": {
                "h": 6,
                "w": 11,
                "x": 0,
                "y": 9
              },
              "hiddenSeries": false,
              "id": 136,
              "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": true,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "percentage": false,
              "pluginVersion": "7.2.0",
              "pointradius": 2,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_upstream_server_responses{code=\"1xx\"}[5m]))",
                  "interval": "",
                  "legendFormat": "Informational",
                  "refId": "A"
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_upstream_server_responses{code=\"2xx\"}[5m]))",
                  "interval": "",
                  "legendFormat": "Success",
                  "refId": "B"
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_upstream_server_responses{code=\"3xx\"}[5m]))",
                  "interval": "",
                  "legendFormat": "Redirection",
                  "refId": "C"
                }
              ],
              "thresholds": [],
              "timeFrom": null,
              "timeRegions": [],
              "timeShift": null,
              "title": "Upstream Success Rate",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
              },
              "yaxes": [
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "datasource": "Prometheus",
              "description": "Total number of upstream servers.",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "mappings": [
                    {
                      "from": "",
                      "id": 0,
                      "operator": "",
                      "text": "N/A",
                      "to": "",
                      "type": 1
                    }
                  ],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": null
                      }
                    ]
                  },
                  "unit": "none"
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 3,
                "x": 11,
                "y": 9
              },
              "id": 124,
              "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "center",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "count(nginx_ingress_nginxplus_upstream_server_state)",
                  "interval": "",
                  "legendFormat": "",
                  "refId": "A"
                },
                {
                  "expr": "count(nginx_ingress_nginxplus_upstream_server_state) / sum(kube_pod_status_phase)",
                  "hide": true,
                  "interval": "",
                  "legendFormat": "",
                  "refId": "B"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Upstream Server Count",
              "type": "stat"
            },
            {
              "aliasColors": {
                "Client Errors": "rgb(204, 204, 204)",
                "Server Errors": "rgb(255, 242, 0)"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "Prometheus",
              "description": " 4|5xx Status Codes",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "links": []
                },
                "overrides": []
              },
              "fill": 1,
              "fillGradient": 5,
              "gridPos": {
                "h": 6,
                "w": 10,
                "x": 14,
                "y": 9
              },
              "hiddenSeries": false,
              "id": 138,
              "legend": {
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": true,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "nullPointMode": "connected",
              "options": {
                "alertThreshold": true
              },
              "percentage": false,
              "pluginVersion": "7.2.0",
              "pointradius": 2,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_upstream_server_responses{code=~\"[4].*\"}[2m]))",
                  "interval": "",
                  "legendFormat": "Client Errors",
                  "refId": "A"
                },
                {
                  "expr": "sum(rate(nginx_ingress_nginxplus_upstream_server_responses{code=~\"[5].*\"}[2m]))",
                  "interval": "",
                  "legendFormat": "Server Errors",
                  "refId": "B"
                }
              ],
              "thresholds": [],
              "timeFrom": null,
              "timeRegions": [],
              "timeShift": null,
              "title": "Upstream Error Rate",
              "tooltip": {
                "shared": true,
                "sort": 1,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
              },
              "yaxes": [
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "datasource": "Prometheus",
              "description": "Current State of the upstream servers.",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "mappings": [
                    {
                      "from": "1",
                      "id": 0,
                      "operator": "",
                      "text": "UP",
                      "to": "10000",
                      "type": 2,
                      "value": "2"
                    },
                    {
                      "from": "",
                      "id": 1,
                      "operator": "",
                      "text": "DOWN",
                      "to": "",
                      "type": 1,
                      "value": "0"
                    }
                  ],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "green",
                        "value": null
                      },
                      {
                        "color": "rgb(228, 0, 43)",
                        "value": 0
                      },
                      {
                        "color": "rgb(0, 150, 57)",
                        "value": 1
                      }
                    ]
                  }
                },
                "overrides": []
              },
              "gridPos": {
                "h": 3,
                "w": 3,
                "x": 11,
                "y": 12
              },
              "id": 144,
              "options": {
                "colorMode": "background",
                "graphMode": "none",
                "justifyMode": "center",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "mean"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "auto"
              },
              "pluginVersion": "7.2.0",
              "targets": [
                {
                  "expr": "sum(nginx_ingress_nginxplus_upstream_server_state)",
                  "interval": "",
                  "legendFormat": "",
                  "refId": "A"
                }
              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Upstream Server State",
              "type": "stat"
            }
          ],
          "title": "Upstream Metrics",
          "type": "row"
        },
        {
          "collapsed": true,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 9
          },
          "id": 150,
          "panels": [
            {
              "aliasColors": {},
              "bars": false,
              "cacheTimeout": null,
              "dashLength": 10,
              "dashes": false,
              "datasource": "Prometheus",
              "description": "",
              "fieldConfig": {
                "defaults": {
                  "custom": {},
                  "links": []
                },
                "overrides": []
              },
              "fill": 1,
              "fillGradient": 0,
              "gridPos": {
                "h": 6,
                "w": 24,
                "x": 0,
                "y": 10
              },
              "hiddenSeries": false,
              "id": 111,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 1,
              "links": [],
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "percentage": false,
              "pluginVersion": "7.2.0",
              "pointradius": 2,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "irate(nginx_ingress_nginxplus_ssl_handshakes{instance=~\"$instance\"}[5m])",
                  "format": "time_series",
                  "interval": "",
                  "legendFormat": "{{instance}} Handshakes",
                  "refId": "A"
                },
                {
                  "expr": "irate(nginx_ingress_nginxplus_ssl_handshakes_failed{instance=~\"$instance\"}[5m])",
                  "format": "time_series",
                  "legendFormat": "{{instance}} Failed",
                  "refId": "B"
                },
                {
                  "expr": "irate(nginx_ingress_nginxplus_ssl_sessions_reuses{instance=~\"$instance\"}[5m])",
                  "format": "time_series",
                  "legendFormat": "{{instance}} Reuses",
                  "refId": "C"
                }
              ],
              "thresholds": [],
              "timeFrom": null,
              "timeRegions": [],
              "timeShift": null,
              "title": "SSL Performance",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
              },
              "yaxes": [
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            }
          ],
          "title": "SSL Metrics",
          "type": "row"
        }
      ],
      "refresh": "",
      "schemaVersion": 26,
      "style": "dark",
      "tags": [
        "nginx",
        "plus",
        "ingress"
      ],
      "templating": {
        "list": [
          {
            "allValue": ".*",
            "current": {
              "selected": true,
              "text": [
                "All"
              ],
              "value": [
                "$__all"
              ]
            },
            "datasource": "Prometheus",
            "definition": "label_values(container_memory_usage_bytes{namespace=~\".+\",container_name!=\"POD\"},namespace)",
            "hide": 0,
            "includeAll": true,
            "label": "Namespace",
            "multi": true,
            "name": "namespace",
            "options": [],
            "query": "label_values(container_memory_usage_bytes{namespace=~\".+\",container_name!=\"POD\"},namespace)",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 0,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "allValue": ".*",
            "current": {
              "isNone": true,
              "selected": false,
              "text": "None",
              "value": ""
            },
            "datasource": "Prometheus",
            "definition": "label_values(nginx_ingress_controller_ingress_resources_total, kubernetes_pod_name) ",
            "hide": 0,
            "includeAll": false,
            "label": "NGINX Plus Controller",
            "multi": false,
            "name": "controller",
            "options": [],
            "query": "label_values(nginx_ingress_controller_ingress_resources_total, kubernetes_pod_name) ",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 0,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "allValue": ".*",
            "current": {
              "selected": true,
              "text": [
                "All"
              ],
              "value": [
                "$__all"
              ]
            },
            "datasource": "Prometheus",
            "definition": "label_values(nginx_ingress_nginxplus_server_zone_processing,server_zone)",
            "hide": 0,
            "includeAll": true,
            "label": "Server Zone",
            "multi": true,
            "name": "server_zone",
            "options": [],
            "query": "label_values(nginx_ingress_nginxplus_server_zone_processing,server_zone)",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "allValue": null,
            "current": {
              "selected": true,
              "text": [
                "All"
              ],
              "value": [
                "$__all"
              ]
            },
            "datasource": "Prometheus",
            "definition": "label_values(nginx_ingress_nginxplus_upstream_server_state,server)",
            "hide": 0,
            "includeAll": true,
            "label": "Server",
            "multi": true,
            "name": "server",
            "options": [],
            "query": "label_values(nginx_ingress_nginxplus_upstream_server_state,server)",
            "refresh": 2,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "allValue": null,
            "current": {
              "selected": true,
              "text": [
                "All"
              ],
              "value": [
                "$__all"
              ]
            },
            "datasource": "Prometheus",
            "definition": "label_values(nginx_ingress_nginxplus_upstream_server_state,upstream)",
            "hide": 0,
            "includeAll": true,
            "label": "Upstream Server",
            "multi": true,
            "name": "upstream",
            "options": [],
            "query": "label_values(nginx_ingress_nginxplus_upstream_server_state,upstream)",
            "refresh": 2,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          }
        ]
      },
      "time": {
        "from": "now-1h",
        "to": "now"
      },
      "timepicker": {
        "refresh_intervals": [
          "10s",
          "30s",
          "2m",
          "5m",
          "15m",
          "30m",
          "1h",
          "2h",
          "1d"
        ],
        "time_options": [
          "5m",
          "15m",
          "1h",
          "6h",
          "12h",
          "24h",
          "2d",
          "7d",
          "30d"
        ]
      },
      "timezone": "browser",
      "title": "NGINX Plus Ingress Controller",
      "uid": "VUwGrLVMz",
      "version": 5
    }