sonata-nfv / son-gkeeper

SONATA's Service Platform Gatekeeper
http://www.sonata-nfv.eu
Apache License 2.0
2 stars 18 forks source link

Implement request for existing metrics #592

Open jbonnet opened 7 years ago

jbonnet commented 7 years ago

Gather them from http://sp.int3.sonata-nfv.eu:8000/api/v1/prometheus/metrics/list

felipevicens commented 7 years ago

Should be from http://son-monitor-manager:8000/api/v1/prometheus/metrics/list if you create a request from internal component

son-monitor-manager IP address will be resolved by docker internal DNS

jbonnet commented 7 years ago

ok, @felipevicens, thanks,

This was just a reminder for implementation... ;-)

BTW, @pkarkazis, isn't this list of metrics static? Or we should count also on having the service- or function-defined metrics?

jbonnet commented 7 years ago

@pkarkazis Please see my previous comment: is the list of metrics in http://son-monitor-manager:8000/api/v1/prometheus/metrics/list static? If not, how could we add more metrics?

pkarkazis commented 7 years ago

@jbonnet from the api call http://son-monitor-manager:8000/api/v1/prometheus/metrics/list we get the list of metrics that already gathered on prometheus server. This list is not static, it changes each time we start an entity which supports some new metrics. For example, vtc-vnf collects some additional metrics like "mbits_packets_all", "mbits_packets_http" etc these metrics are going to be included in api response after the initiation of the first instance of a vtc vnf.

jbonnet commented 7 years ago

Super, @pkarkazis We'll need that to help the user in the SDK to decide which metrics to subscribe...