UNCLASSIFIED - NO CUI

Skip to content

Backend: Add functionality to export Neuvector Data Metrics to Prometheus

Description:

Add functionality in the backend to export NeuVector data metrics to Prometheus for real-time monitoring and visualization.


Tasks:

  1. Integration with Prometheus

    • Set up a Prometheus metrics endpoint in the backend.
    • Define and register custom metrics for NeuVector (e.g.,compliance data).
  2. Data Processing

    • Fetch NeuVector data using the existing client.
    • Parse and transform the data into Prometheus-compatible metrics.
  3. Metrics Export

    • Push the transformed metrics to the Prometheus endpoint.
    • Ensure proper labeling (e.g., namespace, pass/fail, contorl).
  4. Error Handling and Logging

    • Handle errors during data fetching, transformation, and export.
    • Implement logging for debugging and monitoring.
  5. Testing

    • Write unit tests for metric transformation and export logic.
    • Perform integration tests with Prometheus to validate metric ingestion.

--

Edited by Manuel Ucles