ric-plt/vespamgr.git
4 years agoConfigure xApp metrics in xApp description 60/960/3
Katri Turunen [Mon, 16 Sep 2019 05:48:18 +0000 (08:48 +0300)]
Configure xApp metrics in xApp description

Vesmgr subscribes the xApp notifications from xAppMgr. When it
receives a notification, it requests the xApp config from xAppMgr,
creates the VESPA configuration according to it, and restarts
VESPA with the new configuration.

The xApp counters should be defined in the xApp descriptor.
Vesmgr reads the counter definitions from section config->metrics.
The following fields are required:

* name - Prometheus name of the counter
* objectName - Ves collector object name
* objectInstance - Ves collector object instance

If the same counter name is defined by several xApps,
vesmgr makes the configuration based on the first definition
and ignores the latter ones, if they are conflicting.
However, VESPA reports all counters to Ves collector regardless
of the xApp exposing them.

VESPA reads the ricComponentName from Prometheus label
"kubernetes_name".

There are no more hard-coded metrics configured in this version.

Change-Id: I746c6941cebe686165aed97e223b0ec0e9c7a679
Signed-off-by: Katri Turunen <katri.turunen@nokia.com>
4 years agoRead PrimaryCollector parameters from env variables 57/857/2
Katri Turunen [Mon, 2 Sep 2019 07:28:52 +0000 (10:28 +0300)]
Read PrimaryCollector parameters from env variables

The following environment variables are expected:
VESMGR_PRICOLLECTOR_USER
VESMGR_PRICOLLECTOR_PASSWORD
VESMGR_PRICOLLECTOR_PASSPHRASE
VESMGR_PRICOLLECTOR_SERVERROOT
VESMGR_PRICOLLECTOR_TOPIC
VESMGR_PRICOLLECTOR_SECURE

Vesmgr now passes the parameters to VESPA via yaml instead of cmd line.

This commit contains also the following changes:
- Correcttion to VESPA configuration: FixAdditionalObject --> FixAdditionalObjects
- Added UT run to Dockerfile as part of the build.

Change-Id: Ib15916dba8c22a19a50da6d77e1e5a54418f2ff4
Signed-off-by: Katri Turunen <katri.turunen@nokia.com>
4 years agoAdd first version of VES agent and vesmgr 15/715/4
Katri Turunen [Thu, 15 Aug 2019 07:49:36 +0000 (10:49 +0300)]
Add first version of VES agent and vesmgr

Vesmgr starts VES agent with a hard-coded measurement
configuration.

The following parameters can be defined as environment variables:
VESMGR_HB_INTERVAL
VESMGR_MEAS_INTERVAL
VESMGR_PRICOLLECTOR_ADDR
VESMGR_PRICOLLECTOR_PORT
VESMGR_PROMETHEUS_ADDR

Change-Id: I2faf07fca10864d331d81c2c15b94b9f263402b5
Signed-off-by: Katri Turunen <katri.turunen@nokia.com>
5 years agoInitial empty repository
suresh channamallu [Tue, 14 May 2019 17:56:23 +0000 (17:56 +0000)]
Initial empty repository