Service Interconnect edge dashboard configuration file

Use this file to provision Grafana with a dashboard for Service Interconnect edge gateways.

{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "To show Red Hat Service Interconnect metrics",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 5,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": "MetricsDatasourceManager",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "rate(flp_connectionBytes{app_name=~\"${appName}\", svc_name=~\"${svcName}\"}[$__rate_interval])",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "App-To-Svc Total Bytes",
      "type": "timeseries"
    },
    {
      "datasource": "MetricsDatasourceManager",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "ceil(rate(flows_total{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval]))",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "App-To-Svc Flow Count",
      "type": "timeseries"
    },
    {
      "datasource": "MetricsDatasourceManager",
      "description": "Shows average latencies for an application to service based on interval",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "ceil((rate(flow_latency_microseconds_sum{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval])/\r\nrate(flow_latency_microseconds_count{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval]))/1000)",
          "format": "time_series",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Average Latency for an App-To-Svc",
      "type": "timeseries"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "isNone": true,
          "selected": false,
          "text": "None",
          "value": ""
        },
        "datasource": "MetricsDatasourceManager",
        "definition": "label_values(app_name)",
        "hide": 0,
        "includeAll": false,
        "label": "App Name",
        "multi": true,
        "name": "appName",
        "options": [],
        "query": {
          "query": "label_values(app_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "isNone": true,
          "selected": false,
          "text": "None",
          "value": ""
        },
        "datasource": "MetricsDatasourceManager",
        "definition": "label_values(svc_name)",
        "hide": 0,
        "includeAll": false,
        "label": "Service Name",
        "multi": true,
        "name": "svcName",
        "options": [],
        "query": {
          "query": "label_values(svc_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Red Hat Service Interconnect Dashboard",
  "uid": "",
  "version": "",
  "weekStart": ""
}{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "To show Red Hat Service Interconnect metrics",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 5,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": "MetricsDatasourceManager",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "rate(flp_connectionBytes{app_name=~\"${appName}\", svc_name=~\"${svcName}\"}[$__rate_interval])",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "App-To-Svc Total Bytes",
      "type": "timeseries"
    },
    {
      "datasource": "MetricsDatasourceManager",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "ceil(rate(flows_total{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval]))",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "App-To-Svc Flow Count",
      "type": "timeseries"
    },
    {
      "datasource": "MetricsDatasourceManager",
      "description": "Shows average latencies for an application to service based on interval",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": "MetricsDatasourceManager",
          "editorMode": "code",
          "expr": "ceil((rate(flow_latency_microseconds_sum{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval])/\r\nrate(flow_latency_microseconds_count{app_name=~\"${appName}\",svc_name=~\"${svcName}\",direction=\"incoming\"}[$__rate_interval]))/1000)",
          "format": "time_series",
          "legendFormat": "App Cluster Name: {{app_cluster_name}}, App Namespace Name: {{app_namespace_name}},App Location Name: {{app_location_name}}, Svc Cluster Name: {{svc_cluster_name}}, Svc Namespace Name: {{svc_namespace_name}},Svc Location Name: {{svc_location_name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Average Latency for an App-To-Svc",
      "type": "timeseries"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "isNone": true,
          "selected": false,
          "text": "None",
          "value": ""
        },
        "datasource": "MetricsDatasourceManager",
        "definition": "label_values(app_name)",
        "hide": 0,
        "includeAll": false,
        "label": "App Name",
        "multi": true,
        "name": "appName",
        "options": [],
        "query": {
          "query": "label_values(app_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "isNone": true,
          "selected": false,
          "text": "None",
          "value": ""
        },
        "datasource": "MetricsDatasourceManager",
        "definition": "label_values(svc_name)",
        "hide": 0,
        "includeAll": false,
        "label": "Service Name",
        "multi": true,
        "name": "svcName",
        "options": [],
        "query": {
          "query": "label_values(svc_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Red Hat Service Interconnect Dashboard",
  "uid": "",
  "version": "",
  "weekStart": ""
}