commit | 49eaef63e147cfd2d3aaaf4b03708c21ee3878a0 | [log] [tgz] |
---|---|---|
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | Mon Apr 08 17:31:17 2024 -0700 |
committer | Matthew Watkins <mwatkins@linuxfoundation.org> | Tue Apr 23 11:29:53 2024 +0100 |
tree | 4c73ce7a44b7ecdf9d090290842745109f20b5c3 | |
parent | 50363c7a9c6b1231192e5ba78de3320a59affcba [diff] |
CI: Add silent prescan SonarCloud job Change-Id: I72864ec504a0bdc550286c6a421467d19e2b1ba6 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
The VESPA manager uses the VES Agent https://github.com/nokia/ONAP-VESPA to adapt near-RT RIC internal statistics' collection using Prometheus (xApps and platform containers) to ONAP's VES (VNF event streaming).
The vesmgr container runs two processes: the VESPA manager and the VES Agent (i.s. VESPA).
The VESPA manager starts and configures the VES Agent.
The VES Agent is a service acting as a bridge between Prometheus and ONAP's VES Collector.
The application metrics are defined in the application descriptor. For each counter, the following fields are required in the "metrics" section of the descriptor:
The VESPA manager receives the application metrics configuration from the application manager. It subscribes the app notification messages from the application manager, and after having received one, requests the latest application configuration, creates the VES Agent configuration based on it, and restarts the VES Agent.
The VES Agent does not report any other metrics to VES.
The VES Agent reads the ricComponentName from Prometheus label "kubernetes_name".
The VES Agent transmits events to the VES Collector in the VES Common Event Format v5.4.1. The Common Event Format is expressed in JSON schema v28.4.1.
VES Event Listener 5.4.1: https://docs.onap.org/en/casablanca/submodules/vnfsdk/model.git/docs/files/VESEventListener.html
JSON schema v28.4.1: https://github.com/nokia/ONAP-VESPA/blob/8e9d9e93bb00bed0f5402c9de9502385d5e80acc/doc/CommonEventFormat_28.4.1.json
The VESPA manager container requires the following environment variables:
VESMGR_VNFNAME - VNF name as a string. Default: Vespa.
VESMGR_NFNAMINGCODE - NF naming code as a string. Default: ricp.
VESMGR_HB_INTERVAL - VES heartbeat interval as a string. For example: 30s.
VESMGR_MEAS_INTERVAL - Measurement interval as a string. For example: 60s.
VESMGR_PROMETHEUS_ADDR - Prometheus address. For example: http://127.0.0.1:123
VESMGR_ALERTMANAGER_BIND_ADDR - Bind address to receive alerts from Prometheus AlertManager
VESMGR_PRICOLLECTOR_ADDR - Primary collector FQDN as a string. For example: ricaux-entry.
VESMGR_PRICOLLECTOR_PORT - Primary collector port id as an integer. Default: 8443.
VESMGR_PRICOLLECTOR_SERVERROOT - Path before the /eventListener part of the POST URL as a string.
VESMGR_PRICOLLECTOR_TOPIC - Primary collector topic as a string.
VESMGR_PRICOLLECTOR_SECURE - Use HTTPS for VES collector. Possible string values: true or false.
VESMGR_PRICOLLECTOR_USER - User name as a string.
VESMGR_PRICOLLECTOR_PASSWORD - Password as a string.
VESMGR_PRICOLLECTOR_PASSPHASE - Passphrase as a string.
VESMGR_APPMGRDOMAIN - Application manager domain. This is for testing purposes, only. Default: service-ricplt-appmgr-http.ricplt.svc.cluster.local.
The VESPA manager replies to liveness HTTP GET at path /supervision.
The VESPA manager exits in the following error cases:
In order to run the VESPA manager unit tests, give the following command:
go test ./... -v
See LICENSES.txt file.