Explicit Port Ordering Support for VDUs
[osm/Features.git] / NBI_API_for_VNF_metric_collection.md
1 # Enhancement of NBI API to collect VNF metrics
2
3 ## Proposers
4 - Vijay R S (Tata Elxsi)
5
6 ## Type
7
8 **Feature**
9
10 ## Target MDG/TF
11
12 NBI
13
14 ## Description
15
16 Present API implementation for NS metric collection in NBI(Feature 7270) only fetch NFVI metrics, 
17 not the VNF metrics.
18
19 NFVI metrics listed as,
20  cpu_utilization
21  average_memory_utilization
22  disk_read_ops
23  disk_write_ops
24  disk_read_bytes
25  disk_write_bytes
26  packets_dropped_<nic number>
27  packets_received
28  packets_sent
29
30 Improvising the NBI to fetch both VNF and NFVI metrics from Prometheus as part of the same API.
31
32 This can be done by making NBI fetch VNFRs collection from mongodb and get the VNF metric names 
33 with that NBI can query Prometheus to get the VNF metrics.
34
35 ## Demo or definition of done
36
37 Working NBI API which will fetch metrics of both NFVI and VNFs.