This feature is currently in Beta and the format is subject to change.
This topic describes an example configuration for setting up the Prometheus / OpenMetrics endpoint in Megaport’s API.
OpenMetrics is a specification for representing and exchanging metrics data in a standardized format, primarily influenced by the Prometheus exposition format.
With the OpenMetrics endpoint integrated into Megaport’s API, this allows you to expose existing service monitoring information.
In the Prometheus configuration example below, the scrape interval is set to one minute, but the network is only polled every five minutes. You will need to consider this in your PromQL/Grafana dashboarding.
Before you begin, obtain a valid access token. For more information, see Creating an API Key.
Megaport API details
- API: /v1/openmetrics
- Authentication: API key/OAuth2
Example Prometheus Configuration
Metrics
The endpoint currently exports these metrics for all services.
Port
VXC
MCR
MVE
Helpful references