F5Networks / f5-telemetry-streaming

F5 BIG-IP Telemetry Streaming
Apache License 2.0
53 stars 24 forks source link

Schema 1.32 error when using iControl Path Pointers that work #246

Open MicSkr opened 1 year ago

MicSkr commented 1 year ago

Environment

Summary

Telemetry_Endpoints: Items: []: path: indicates only "^[a-zA-Z0-9.]+$" Can not use schema 1.32 without error when using iControl Path Pointers that work.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Evaluate in VSCode and find schema validation error on line 30 regarding path value

    {
    "$schema": "https://raw.githubusercontent.com/F5Networks/f5-telemetry-streaming/master/src/schema/1.32.0/base_schema.json",
    "class": "Telemetry",
    "My_System_Poller": {
      "class": "Telemetry_System_Poller",
      "interval": 0
    },
    "HTTP_System_Stats": {
      "class": "Telemetry_Pull_Consumer",
      "type": "Prometheus",
      "systemPoller": "My_System_Poller"
    },
    "HTTP_Service_Stats": {
      "class": "Telemetry_Pull_Consumer",
      "type": "Prometheus",
      "systemPoller": [
        "Endpoints_Traffic_Virtual_Server_Poller1"
      ]
    },
    "Endpoints_Traffic_Virtual_Server_Poller1": {
      "class": "Telemetry_System_Poller",
      "interval": 0,
      "endpointList": "Endpoints_Traffic_Virtual_Server"
    },
    "Endpoints_Traffic_Virtual_Server": {
      "class": "Telemetry_Endpoints",
      "items": {
        "virtualServerStats": {
          "name": "virtualServerStats",
          "path": "/mgmt/tm/ltm/virtual/stats",
          "enable": true
        }
      }
    }
    }
  2. Observe the following error response: Validation Error: String does not match the pattern of "^[a-zA-Z0-9.]+$".

Expected Behavior

Acceptable path schema

Actual Behavior

Unable to use schema to validate path pointer that is acceptable to submit and use.

G-gonzalezjimenez commented 1 year ago

Have you tried using 1.33?

MicSkr commented 1 year ago

Yes, I have tried schema validation with 1.33. It does not resolve this schema validation issue. Same validation error.

{
  "$schema": "https://raw.githubusercontent.com/F5Networks/f5-telemetry-streaming/master/src/schema/1.33.0/base_schema.json",
    "class": "Telemetry",
    "My_System_Poller": {
      "class": "Telemetry_System_Poller",
      "interval": 0
    },
    "HTTP_System_Stats": {
      "class": "Telemetry_Pull_Consumer",
      "type": "Prometheus",
      "systemPoller": "My_System_Poller"
    },
    "HTTP_Service_Stats": {
      "class": "Telemetry_Pull_Consumer",
      "type": "Prometheus",
      "systemPoller": [
        "Endpoints_Traffic_Virtual_Server_Poller1"
      ]
    },
    "Endpoints_Traffic_Virtual_Server_Poller1": {
      "class": "Telemetry_System_Poller",
      "interval": 0,
      "endpointList": "Endpoints_Traffic_Virtual_Server"
    },
    "Endpoints_Traffic_Virtual_Server": {
      "class": "Telemetry_Endpoints",
      "items": {
        "virtualServerStats": {
          "name": "virtualServerStats",
          "path": "/mgmt/tm/ltm/virtual/stats",
          "enable": true
        }
      }
    }
  }