Commit 396f497e authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Correctly exported dashboard.

parent 47f2fa09
Loading
Loading
Loading
Loading
+1268 −1135
Original line number Diff line number Diff line
{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.5.22"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
@@ -23,8 +60,8 @@
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
    "graphTooltip": 0,
    "id": 8,
  "graphTooltip": 2,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
@@ -42,7 +79,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -52,15 +89,23 @@
          },
          "mappings": [],
          "thresholds": {
              "mode": "absolute",
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 85
              },
              {
                "color": "orange",
                "value": 90
              },
              {
                "color": "red",
                  "value": 80
                "value": 95
              }
            ]
          },
@@ -92,11 +137,11 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
            "expr": "(rate(tfs_opticalattackmanager_loop_seconds_sum[2m]) / rate(tfs_opticalattackmanager_loop_seconds_count[2m])) / tfs_opticalattackmanager_desired_monitoring_interval",
          "expr": "(rate(tfs_opticalattackmanager_loop_seconds_sum[1m]) / rate(tfs_opticalattackmanager_loop_seconds_count[1m])) / tfs_opticalattackmanager_desired_monitoring_interval",
          "instant": true,
          "range": false,
          "refId": "A"
@@ -105,6 +150,93 @@
      "title": "Loop time",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "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": 12,
        "y": 1
      },
      "id": 31,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "tfs_opticalattackmanager_dropped_assessments_created",
          "refId": "A"
        }
      ],
      "title": "Dropped assessments",
      "type": "timeseries"
    },
    {
      "gridPos": {
        "h": 1,
@@ -119,7 +251,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
@@ -193,7 +325,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "histogram_quantile(0.95, sum(rate(tfs_opticalattackmanager_loop_seconds_bucket[$__rate_interval])) by (le))",
@@ -204,7 +336,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "tfs_opticalattackmanager_desired_monitoring_interval",
@@ -220,7 +352,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -295,7 +427,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "tfs_opticalattackmanager_active_services",
@@ -321,7 +453,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -334,8 +466,8 @@
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
            "fillOpacity": 59,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
@@ -396,7 +528,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "histogram_quantile(0.95, sum(rate(tfs_opticalattackdetector_rpc_detectattack_histogram_duration_bucket[$__rate_interval])) by (le))",
@@ -408,7 +540,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "histogram_quantile(0.95, sum(rate(tfs_opticalattackdetector_inference_response_time_bucket[$__rate_interval])) by (le))",
@@ -420,7 +552,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "histogram_quantile(0.95, sum(rate(tfs_opticalattackdetector_cache_response_time_bucket[$__rate_interval])) by (le))",
@@ -433,7 +565,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "histogram_quantile(0.95, sum(rate(tfs_opticalattackdetector_mitigation_response_time_bucket[$__rate_interval])) by (le))",
@@ -450,7 +582,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -525,7 +657,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "tfs_opticalattackmanager_number_workers",
@@ -537,7 +669,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "kube_replicaset_status_replicas{namespace=\"tfs\", replicaset=~\"opticalattackdetectorservice.+\"}",
@@ -549,7 +681,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "kube_replicaset_status_replicas{namespace=\"tfs\", replicaset=~\"dbscanservingservice.+\"}",
@@ -561,7 +693,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "kube_replicaset_status_replicas{namespace=\"tfs\", replicaset=~\"opticalattackmitigatorservice.+\"}",
@@ -663,7 +795,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -738,7 +870,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"opticalattackmanagerservice.+\"})",
@@ -749,7 +881,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"opticalattackdetectorservice.+\"})",
@@ -762,7 +894,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"dbscanservingservice.+\"})",
@@ -774,7 +906,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"cachingservice.+\"})",
@@ -786,7 +918,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"opticalattackmitigatorservice.+\"})",
@@ -802,7 +934,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -878,7 +1010,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(container_memory_working_set_bytes{namespace=\"tfs\", pod=~\"opticalattackmanagerservice.+\"})",
@@ -890,7 +1022,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(container_memory_working_set_bytes{namespace=\"tfs\",pod=~\"opticalattackdetectorservice.+\"})",
@@ -903,7 +1035,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(container_memory_working_set_bytes{namespace=\"tfs\",pod=~\"dbscanservingservice.+\"})",
@@ -915,7 +1047,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(container_memory_working_set_bytes{namespace=\"tfs\",pod=~\"cachingservice.+\"})",
@@ -927,7 +1059,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"tfs\",pod=~\"opticalattackmitigatorservice.+\"})",
@@ -943,7 +1075,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -1019,7 +1151,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_receive_bytes_total{namespace=\"tfs\", pod=~\"opticalattackmanagerservice.+\"}[$__rate_interval]))",
@@ -1030,7 +1162,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_receive_bytes_total{namespace=\"tfs\",pod=~\"opticalattackdetectorservice.+\"}[$__rate_interval]))",
@@ -1043,7 +1175,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_receive_bytes_total{namespace=\"tfs\",pod=~\"dbscanservingservice.+\"}[$__rate_interval]))",
@@ -1055,7 +1187,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_receive_bytes_total{namespace=\"tfs\",pod=~\"cachingservice.+\"}[$__rate_interval]))",
@@ -1067,7 +1199,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_receive_bytes_total{namespace=\"tfs\",pod=~\"opticalattackmitigatorservice.+\"}[$__rate_interval]))",
@@ -1083,7 +1215,7 @@
    {
      "datasource": {
        "type": "prometheus",
          "uid": "IWY3b0yVz"
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
@@ -1159,7 +1291,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_transmit_bytes_total{namespace=\"tfs\", pod=~\"opticalattackmanagerservice.+\"}[$__rate_interval]))",
@@ -1170,7 +1302,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_transmit_bytes_total{namespace=\"tfs\",pod=~\"opticalattackdetectorservice.+\"}[$__rate_interval]))",
@@ -1183,7 +1315,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_transmit_bytes_total{namespace=\"tfs\",pod=~\"dbscanservingservice.+\"}[$__rate_interval]))",
@@ -1195,7 +1327,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_transmit_bytes_total{namespace=\"tfs\",pod=~\"cachingservice.+\"}[$__rate_interval]))",
@@ -1207,7 +1339,7 @@
        {
          "datasource": {
            "type": "prometheus",
              "uid": "IWY3b0yVz"
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "sum(irate(container_network_transmit_bytes_total{namespace=\"tfs\",pod=~\"opticalattackmitigatorservice.+\"}[$__rate_interval]))",
@@ -1234,6 +1366,7 @@
      "type": "row"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
@@ -1248,6 +1381,6 @@
  "timezone": "",
  "title": "TFS / Optical cybersecurity",
  "uid": "-Q-B-AsVk",
    "version": 4,
  "version": 1,
  "weekStart": ""
}
 No newline at end of file