sonata-nfv / son-tests

SONATA's Service Platform Tests for Integration and Qualification environments
http://www.sonata-nfv.eu/
Apache License 2.0
0 stars 11 forks source link

Definition - Monitoring and websockets #240

Open felipevicens opened 7 years ago

felipevicens commented 7 years ago

Define a test to extract monitoring data from a VNF using the SDK through websockets

pkarkazis commented 7 years ago

This test consisting of the following steps: 1) Get list of supported metrics from gatekeeper (gk <-> Monitoring Manager GET /api/v1/prometheus/metrics/list) 2) Request a web socket for a specific metric from gk (gk <->Monitoring Manager POST /api/v1/ws/new) 3) Collect data from web socket

jbonnet commented 7 years ago

Hi, I think this test wil have to go through the GK API, it does not make sense to access the Monitoring Manager directly, am I not right?. What is the available API from the Monitoring Manager, can you please send me the link to it? Thanks,

On 23 Mar 2017, at 14:27, Panos Karkazis notifications@github.com wrote:

This test consisting of the following steps:

Get list of supported metrics from Monitoring Manager (GET /api/v1/prometheus/metrics/list) Request a web socket — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sonata-nfv/son-tests/issues/240#issuecomment-288735862, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAuQ2peaZno2pZX3Eh6LTAjlz-W57udks5rooE1gaJpZM4Mc4kD.

pkarkazis commented 7 years ago

Hi Jose, you are right... the access to Monitoring manager is going to be done through gkapi. The related api are the following: GET http://sp.int3.sonata-nfv.eu:8000/api/v1/prometheus/metrics/list POST http://sp.int3.sonata-nfv.eu:8000/api/v1/ws/new -d {"metric":"vm_cpu_perc","filters":["id='123456asdas255sdas'","type='vnf'"]}

Headers: Accept: application/json Content-Type: application/json

BR Panos

jbonnet commented 7 years ago

Ok, great, Panos! Any restriction/validation (user authorization will have to be used, e.g.)?

On 23 Mar 2017, at 15:13, Panos Karkazis notifications@github.com wrote:

Hi Jose, you are right... the access to Monitoring manager is going to be done through gkapi. The related api are the following: GET http://sp.int3.sonata-nfv.eu:8000/api/v1/prometheus/metrics/list http://sp.int3.sonata-nfv.eu:8000/api/v1/prometheus/metrics/list POST http://sp.int3.sonata-nfv.eu:8000/api/v1/ws/new http://sp.int3.sonata-nfv.eu:8000/api/v1/ws/new -d {"metric":"vm_cpu_perc","filters":["id='123456asdas255sdas'","type='vnf'"]}

Headers: Accept: application/json Content-Type: application/json

BR Panos

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sonata-nfv/son-tests/issues/240#issuecomment-288751286, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAuQ8MBveWCPc3gHsy0O8qfA9RbWXJEks5roowjgaJpZM4Mc4kD.

pkarkazis commented 7 years ago

I think that is not mandatory to include auth in websockets testing procedure.