Commit 62b22885 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

feat: Add Grafana dashboard for SIMAP SLA monitoring and enhance AI model processing

- Introduced a new Grafana dashboard V3 JSON file for monitoring SIMAP service-level agreements (SLA).
- Updated AIModelProcessor to accept an InfluxDBFetcher instance for writing predicted telemetry results.
- Implemented a method in InfluxDBFetcher to write predicted telemetry data to InfluxDB, including average calculations for bandwidth utilization and latency.
- Modified the engine to pass the InfluxDB fetcher to the AI processor for telemetry writing.
parent 0e9ac4f4
Loading
Loading
Loading
Loading
+122 −2
Original line number Diff line number Diff line
@@ -285,7 +285,34 @@
          },
          "unit": "percent"
        },
        "overrides": []
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/pred_.*/"
            },
            "properties": [
              {
                "id": "custom.lineStyle",
                "value": {
                  "dash": [10, 10],
                  "fill": "dash"
                }
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-gray",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.fillOpacity",
                "value": 5
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
@@ -320,6 +347,16 @@
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "SELECT pred_bandwidth_utilization FROM predicted_telemetry WHERE time > now() - $timerange AND network_id =~ /$network_id/ AND link_id =~ /$link_id/ GROUP BY network_id, link_id",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series"
        }
      ],
      "title": "Link Bandwidth Utilization (%) - Timeline",
@@ -389,7 +426,34 @@
          },
          "unit": "ms"
        },
        "overrides": []
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/pred_.*/"
            },
            "properties": [
              {
                "id": "custom.lineStyle",
                "value": {
                  "dash": [10, 10],
                  "fill": "dash"
                }
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-gray",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.fillOpacity",
                "value": 5
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
@@ -424,6 +488,16 @@
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "SELECT pred_latency FROM predicted_telemetry WHERE time > now() - $timerange AND network_id =~ /$network_id/ AND link_id =~ /$link_id/ GROUP BY network_id, link_id",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series"
        }
      ],
      "title": "Link Latency (ms) - Timeline",
@@ -662,6 +736,52 @@
        "query": "5m,10m,20m,1h,3h,6h,12h",
        "refresh": 2,
        "type": "interval"
      },
      {
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_INFLUXDB}"
        },
        "definition": "SHOW TAG VALUES FROM link_telemetry WITH KEY = network_id",
        "includeAll": true,
        "label": "Network ID",
        "multi": true,
        "name": "network_id",
        "options": [],
        "query": "SHOW TAG VALUES FROM link_telemetry WITH KEY = network_id",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_INFLUXDB}"
        },
        "definition": "SHOW TAG VALUES FROM link_telemetry WITH KEY = link_id WHERE network_id =~ /$network_id/",
        "includeAll": true,
        "label": "Link ID",
        "multi": true,
        "name": "link_id",
        "options": [],
        "query": "SHOW TAG VALUES FROM link_telemetry WITH KEY = link_id WHERE network_id =~ /$network_id/",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
+805 −0

File added.

Preview size limit exceeded, changes collapsed.

+13 −5

File changed.

Preview size limit exceeded, changes collapsed.

+74 −3

File changed.

Preview size limit exceeded, changes collapsed.

Loading