Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MicSkr opened this issue Feb 14, 2023 · 2 comments
Open

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

MicSkr opened this issue Feb 14, 2023 · 2 comments
Labels
bug Something isn't working untriaged Issue needs to be reviewed for validity

Comments

@MicSkr
Copy link

MicSkr commented Feb 14, 2023

Environment

  • Telemetry Streaming Version: 1.32
  • BIG-IP Version: N/A

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
        }
      }
    }
  }
  1. 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.

@MicSkr MicSkr added bug Something isn't working untriaged Issue needs to be reviewed for validity labels Feb 14, 2023
@G-gonzalezjimenez
Copy link

Have you tried using 1.33?

@MicSkr
Copy link
Author

MicSkr commented Jun 13, 2023

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
        }
      }
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Issue needs to be reviewed for validity
Projects
None yet
Development

No branches or pull requests

2 participants