Skip to content

VIM monitoring

Panos Karkazis edited this page Jul 25, 2018 · 4 revisions

5GTANGO/SONATA VIM monitoring client is used in order to gather monitoring data from VIM infrastructure (openstack) and push them to the monitoring server

Supported monitoring metrics are:

  • Total/used Cores
  • Total/used Instances
  • Total/used RAM size
  • Total/used Floating IPs

Dependencies

  • python 2.7

Installation

From code

a. Set configuration file (odc.conf)

[Openstack]
controller_ip: <controller_ip>
keystone_url: http://<keystone_ip>:5000/v2.0/tokens
tenants:  [{"name": "admin","user_name": "name","password": "password","pushgw_url": ["http://<pushgateway>:<port>/metrics"]}]
node_name: pop_vim

b. Execute the probe

sudo python opensdatacollector.py

Usage

All metrics are exposed to the Pushgateway server.

Get last pushed value of VNFs cpu usage

Request:

curl http://<pushgateway>:9091/metrics | grep vm_cpu_perc | grep vnf

Response:

# TYPE vm_cpu_perc gauge
vm_cpu_perc{core="cpu",id="0035703e-afc5-46fc-acbf-0b57df8019c1",instance="TEST-VNF:0035703e-afc5-46fc-acbf-0b57df8019c1",job="vnf"} 56.06 1532528503000
vm_cpu_perc{core="cpu",id="843879eb-4004-40e0-90db-3303eaa923ad",instance="TEST_VM1_DEBIAN:843879eb-4004-40e0-90db-3303eaa923ad",job="vnf"} 0 1532528501000
vm_cpu_perc{core="cpu",id="be2479d4-fc0e-48d0-8c9b-92105a7b921c",instance="vtu-vnf:be2479d4-fc0e-48d0-8c9b-92105a7b921c",job="vnf"} 0 1532528501000
vm_cpu_perc{core="cpu0",id="0035703e-afc5-46fc-acbf-0b57df8019c1",instance="TEST-VNF:0035703e-afc5-46fc-acbf-0b57df8019c1",job="vnf"} 15.15 1532528503000
vm_cpu_perc{core="cpu0",id="843879eb-4004-40e0-90db-3303eaa923ad",instance="TEST_VM1_DEBIAN:843879eb-4004-40e0-90db-3303eaa923ad",job="vnf"} 0 1532528501000
vm_cpu_perc{core="cpu0",id="be2479d4-fc0e-48d0-8c9b-92105a7b921c",instance="vtu-vnf:be2479d4-fc0e-48d0-8c9b-92105a7b921c",job="vnf"} 0 1532528501000
vm_cpu_perc{core="cpu1",id="0035703e-afc5-46fc-acbf-0b57df8019c1",instance="TEST-VNF:0035703e-afc5-46fc-acbf-0b57df8019c1",job="vnf"} 97 1532528503000
vm_cpu_perc{core="cpu1",id="be2479d4-fc0e-48d0-8c9b-92105a7b921c",instance="vtu-vnf:be2479d4-fc0e-48d0-8c9b-92105a7b921c",job="vnf"} 0 1532528501000

Get last pushed value VNFs memory usage

Request:

curl http://<pushgateway>:9091/metrics | grep vm_mem_perc | grep vnf

Response:

# TYPE vm_mem_perc gauge
vm_mem_perc{id="0035703e-afc5-46fc-acbf-0b57df8019c1",instance="TEST-VNF:0035703e-afc5-46fc-acbf-0b57df8019c1",job="vnf"} 5.46 1532528656000
vm_mem_perc{id="843879eb-4004-40e0-90db-3303eaa923ad",instance="TEST_VM1_DEBIAN:843879eb-4004-40e0-90db-3303eaa923ad",job="vnf"} 88.92 1532528658000
vm_mem_perc{id="be2479d4-fc0e-48d0-8c9b-92105a7b921c",instance="vtu-vnf:be2479d4-fc0e-48d0-8c9b-92105a7b921c",job="vnf"} 79.94 1532528654000
Clone this wiki locally