Monitor with Operational Metrics
You can enable metrics to monitor your services running in MK.IO.
The metrics you can scrape from your MK.IO can be used to monitor workflow services, including:
- Live events (input & output bitrate monitoring)
- Streaming endpoints (error rate, bitrate & latency)
- On-demand encode jobs (count of successful & unsuccessful completed jobs)
Metrics are enabled per subscription. Once enabled, you will have access to metrics for all services within your subscription.
Metrics publishing is a chargeable service and is not enabled by default. Please refer to MK.IO Pricing (opens in a new tab) for detailed information.
Enable metrics on your MK.IO subscription
To enable metrics on your MK.IO subscription:
-
Log in to MK.IO (opens in a new tab) and select a subscription.
-
From the left-hand side menu, navigate to Usage and Metrics.
-
Enable the metrics using the switch at the top right of the page.
Once metrics are activated, MK.IO will provide you with a URL, a Username and a Password. This information can be used by your monitoring infrastructure to scrape the metrics from MK.IO.
Alternatively, metrics can be enabled using API. Please refer to API documentation for instructions.
Scrape metrics into Grafana Cloud
Once metrics are enabled in MK.IO, you can obtain a real-time stream of metrics by scraping the “federate” endpoint returned in the enable API call. Metrics are updated every 30s.
To scrape metrics into your Grafana Cloud account:
- Log in to Grafana Cloud. Create an account if you don't already have one.
- From the left-hand menu, go to Connections and click Add new connection.
- In the search bar, type Metrics Endpoint, then open the Metrics Endpoint integration.
- Click Add new scrape job.
Configure the scrape job
Get the details below from the MK.IO portal and enter them into Grafana.
- Name: Enter a name for your scrape job.
- Scrape Job URL: Use the URL provided by MK.IO (the federate endpoint), for example
https://<URL provided by MK.IO>. - Basic authentication: Enter the Username and Password provided by MK.IO.
- Scrape interval: Set the interval to 30s or 1 minute. Use 30s if you need tighter real-time visibility; use 1 minute to reduce cost and data volume.
- Test Connection to verify the endpoint is reachable.
- Click Save Scrape Job.
View metrics
- Import the MK.IO dashboard (opens in a new tab) into your Grafana Cloud account, or
- Open Explore and search for metrics starting with
mk\_.
For a full list of MK.IO services and supported metrics, see the Metrics and labels section below.
Metrics and labels
Each service in MK.IO provides different sets of metrics and labels.
The "Labels" column shows labels specific to each metric. Additionally, there are labels that are common to all customer metrics: region, project_name, project_id.
Services exposing: Subscription, Subscription quotas.
| metric | Description | Type | Labels |
|---|---|---|---|
| mk_up | Always present and equal to 1 when metrics are enabled | Gauge | |
| mkio_api_assetfilters_total | Total number of Asset Filters in the subscription | Gauge | |
| mkio_api_assets_total | Total number of Assets in the subscription | Gauge | |
| mkio_api_contentkeypolicies_total | Total number of Content Key Policies in the subscription | Gauge | |
| mkio_api_devices_total | Total number of Devices in the subscription | Gauge | |
| mkio_api_filters_total | Total number of Filters in the subscription | Gauge | |
| mkio_api_jobs_total | Total number of Jobs in the subscription | Gauge | |
| mkio_api_jobs_running_total | Total number of Jobs currently running | Gauge | |
| mkio_api_liveeventoutputs_total | Total number of Live Event Outputs in the subscription | Gauge | |
| mkio_api_liveevents_total | Total number of Live Events in the subscription | Gauge | |
| mkio_api_liveevents_running_total | Total number of Live Events currently running | Gauge | |
| mkio_api_liveevents_stopped_total | Total number of Live Events currently stopped | Gauge | |
| mkio_api_remoteconnections_total | Total number of Remote Connections in the subscription | Gauge | |
| mkio_api_storageaccounts_total | Total number of Storage Accounts linked to the subscription | Gauge | |
| mkio_api_streamingendpoints_total | Total number of Streaming Endpoints in the subscription | Gauge | |
| mkio_api_streamingendpoints_running_total | Total number of Streaming Endpoints currently running | Gauge | |
| mkio_api_streamingendpoints_stopped_total | Total number of Streaming Endpoints currently stopped | Gauge | |
| mkio_api_streamingendpoints_unit_total | Total number of Streaming Endpoint Units allocated | Gauge | |
| mkio_api_streaminglocators_total | Total number of Streaming Locators in the subscription | Gauge | |
| mkio_api_streamingpolicies_total | Total number of Streaming Policies in the subscription | Gauge | |
| mkio_api_transforms_total | Total number of Transforms in the subscription | Gauge | |
| mkio_api_tunnels_total | Total number of Tunnels in the subscription | Gauge |