Akri Metrics API

Prometheus metrics endpoints for Akri Agent, Controller, and broker pods

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /metrics Akri Get Prometheus Metrics #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/akri:akri-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

akri-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Akri Metrics API
  description: Prometheus metrics endpoint exposed by Akri Agent, Controller, and broker pods. Metrics include instance count, discovery response results and latency, and broker pod count for monitoring Akri deployments.
  version: 0.12.20
  contact:
    name: Akri Community
    url: https://github.com/project-akri/akri
  license:
    name: Apache 2.0
    url: https://github.com/project-akri/akri/blob/main/LICENSE
  x-generated-from: documentation
servers:
- url: http://localhost:8080
  description: Akri Agent/Controller metrics server (default port)
tags:
- name: Metrics
  description: Prometheus metrics endpoints for Akri Agent, Controller, and broker pods
paths:
  /metrics:
    get:
      operationId: getMetrics
      summary: Akri Get Prometheus Metrics
      description: Returns Prometheus-formatted metrics for the Akri Agent, Controller, or broker pods. Includes instance discovery counts, discovery response results, discovery latency histograms, and broker pod counts.
      tags:
      - Metrics
      responses:
        '200':
          description: Prometheus metrics in text exposition format
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PrometheusMetrics'
              examples:
                GetMetrics200Example:
                  summary: Default getMetrics 200 response
                  x-microcks-default: true
                  value: '# HELP akri_instance_count Number of discovered Akri instances

                    # TYPE akri_instance_count gauge

                    akri_instance_count{configuration="onvif-camera",shared="false"} 3

                    # HELP akri_discovery_response_result Discovery handler response results

                    # TYPE akri_discovery_response_result counter

                    akri_discovery_response_result{configuration="onvif-camera",result="success"} 42

                    # HELP akri_discovery_response_time Discovery handler response latency

                    # TYPE akri_discovery_response_time histogram

                    akri_discovery_response_time_bucket{configuration="onvif-camera",le="0.005"} 10

                    # HELP akri_broker_pod_count Number of broker pods deployed

                    # TYPE akri_broker_pod_count gauge

                    akri_broker_pod_count{configuration="onvif-camera",node="node-01"} 1

                    '
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    PrometheusMetrics:
      title: PrometheusMetrics
      type: string
      description: Prometheus text exposition format containing Akri metrics. Includes akri_instance_count (gauge), akri_discovery_response_result (counter), akri_discovery_response_time (histogram), and akri_broker_pod_count (gauge) plus standard process metrics.
      example: '# HELP akri_instance_count Number of discovered Akri instances

        # TYPE akri_instance_count gauge

        akri_instance_count{configuration="onvif-camera",shared="false"} 3

        '