How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenTelemetry Metrics API

The Metrics API from OpenTelemetry — 1 operation(s) for metrics.

OpenTelemetry Metrics API is one of 6 APIs that OpenTelemetry publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Metrics. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, an API reference, a getting-started guide, and 1 JSON Schema.

This API exposes 1 operation across 1 path, and defines 22 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, http://localhost:4318.

1 operations 1 paths 22 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Server
http://localhost:4318
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

OpenTelemetry Metrics API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

  • bearerAuth — Bearer token authentication for secured OTLP endpoints

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Metrics 1
POST
/v1/metrics
OpenTelemetry Export metric data
exportMetrics body → 200400429503

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are ExponentialHistogramDataPoint (14 properties), HistogramDataPoint (11 properties), Metric (8 properties), AnyValue (7 properties). Each schema is shown below with its type and property counts.

InstrumentationScope
object
Metadata about the instrumentation library or component that produced the telemetry data.
4 properties
HistogramDataPoint
object
A single histogram data point
11 properties
Resource
object
Describes the entity producing telemetry. A resource has attributes such as service.name, service.version, host.name, and other identifying metadata.
2 properties
ExportMetricsServiceResponse
object
Response message for the metrics export service
1 property
Histogram
object
Histogram metric with explicit bucket boundaries
2 properties
ExponentialHistogram
object
Histogram metric with exponential bucket boundaries
2 properties
ResourceMetrics
object
Collection of metrics from a resource
3 properties
ExponentialHistogramDataPoint
object
A single exponential histogram data point
14 properties
Summary
object
Summary metric with precomputed quantiles
1 property
KeyValue
object
A key-value pair for attributes
2 properties 2 required
Exemplar
object
Sample input measurement with trace context
6 properties
Metric
object
Represents a single metric with its data points. A metric contains one of gauge, sum, histogram, exponential histogram, or summary data.
8 properties 1 required
Gauge
object
Gauge metric representing instantaneous values
1 property
NumberDataPoint
object
A single numeric data point
7 properties
ScopeMetrics
object
Metrics associated with an instrumentation scope
3 properties
ExponentialHistogramBuckets
object
Bucket counts for exponential histograms
2 properties
ExportMetricsPartialSuccess
object
Indicates partial success when some data points were rejected
2 properties
ExportMetricsServiceRequest
object
Request message for the metrics export service
1 property
AnyValue
object
A polymorphic value container that can hold string, bool, int, double, array, or key-value list values.
7 properties
Status
object
Error status response
2 properties
Sum
object
Sum metric representing cumulative or delta values
3 properties
SummaryDataPoint
object
A single summary data point
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

opentelemetry-metrics-api-openapi.yml Raw ↑

Other APIs OpenTelemetry publishes across the network.

OpenTelemetry Protocol (OTLP) gRPC API
OpenTelemetry Collector API
OpenTelemetry SDK API
OpenTelemetry Logs API
OpenTelemetry Traces API
Where this information came from

This is an independent, third-party profile of OpenTelemetry Metrics API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.