sonata-nfv / tng-api-gtw

The API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
http://5gtango.eu
Apache License 2.0
1 stars 12 forks source link

Provide endpoints for monitoring (data and graphs) #182

Closed jbonnet closed 5 years ago

jbonnet commented 5 years ago

http://pre-int-sp-ath.5gtango.eu:3000 Or exactly to http://pre-int-sp-ath.5gtango.eu:3000/d-solo/sp_dash/sp?orgId=1&panelId=13&from=58723465723546&......

anapolg commented 5 years ago

Please expose http://pre-int-sp-ath.5gtango.eu:3000 as ..../monitoring/graphs Everything else will be handled with url parameters such as ?panelId=Y?orgId=X....

cc @pkarkazis

jbonnet commented 5 years ago

@pkarkazis is son-monitor still the name of the monitoring container? If so, the above should be http://son-monitor:3000, right?

pkarkazis commented 5 years ago

Hi @jbonnet, regarding the /monitoring/data we must expose the following apis: GET son-monitor-manager:8000/api/v2/services/{srv_id}/metrics GET son-monitor-manager:8000/api/v2/vnfs/{vnf_id}/metrics GET son-monitor-manager:8000/api/v2/vnfs/{vnf_id}/vdu/{vdu_id}/metrics or we could expose all GET the apis under son-monitor-manager:8000/api/v2/ what do you think?

pkarkazis commented 5 years ago

@jbonnet the graphs are provided from a separate container son-monitor-grafana:3000

jbonnet commented 5 years ago

Related to sonata-nfv/tng-gtk-sp#275

jbonnet commented 5 years ago

@pkarkazis @anapolg Can you please provide me with:

  1. roles that can access this data: "anonynous", admin, customer and developer (my guess: only admins and developers)
  2. what they can to: get,delete,options,patch,post (my guess: developers can only get and options, admins can do all)

Thanks

jbonnet commented 5 years ago

@anapolg @pkarkazis Implemented in PR #183, please test and let me know

anapolg commented 5 years ago

For the moment I just need GET to get the graphs already provided by @pkarkazis

Also for the moment anyone can access the dashboard so anyone should be accepted to see this. It will depend on who you consider that must have access to the Dashboard.

jbonnet commented 5 years ago

@pkarkazis if there's no need for different validation in each one of them, no problem in exposing all at the son-monitor-manager:8000/api/v2/. Is son-monitor-manager the name of the container?

pkarkazis commented 5 years ago

@jbonnet Yes, the son-monitor-manager is the name of the monitoring manager container

jbonnet commented 5 years ago

Done, both for the V&V and SP, via #186 and #183