$npx skillfedfor your agent

prometheus-remote-writer

A Python package to send data using Prometheus remote write protocol.

With conditionsPyPI MonitoringReleased Jan 2026184.5K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — prometheus_remote_writer-1.1.3-py3-none-any.whl
v1.1.3 · released 2026-01-25 · Python <4,>=3.9 · 3 runtime deps: grpcio-tools, requests, python-snappy

Yes, if you need to push metrics to Prometheus-compatible storage from Python and want a straightforward, low-friction client. The library is permissively licensed, has no known vulnerabilities, and supports current Python versions. The aging maintenance status is a minor concern—verify that the package still works with your target Prometheus endpoint and that the maintainer responds to issues before committing to a production dependency.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or higher; grpcio-tools, requests, and python-snappy must be installable in your environment.
  • Low friction installation with three runtime dependencies (grpcio-tools, requests, python-snappy).
  • Package is aging (201 days since last release), so maintenance activity is limited but not abandoned.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute the package freely in commercial and open-source projects with minimal restrictions.

last release 2026-01-25 (201 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 184,472 downloads/mo, #10,036 on PyPI

Verify before relying

pip install prometheus-remote-writer

from prometheus_remote_writer import RemoteWriter

writer = RemoteWriter(
    url='https://prometheus-server/api/v1/write',
    headers={'Authorization': 'Bearer TOKEN'}
)
writer.send([{
    'metric': {'__name__': 'cpu_usage', 'host': 'server1'},
    'values': [23.5],
    'timestamps': [1609459200000]
}])
  • Whether grpcio-tools, requests, and python-snappy are lightweight or have their own heavy transitive dependencies that could increase install friction in practice.
  • Actual maintenance status and responsiveness to issues, since 'aging' status (201 days) may indicate either stable maturity or dormancy.
Same gist for agents: .md · .json

What it is and what it does

prometheus-remote-writer is a Python client library that implements the Prometheus Remote Write protocol, allowing you to push time-series metrics directly to Prometheus-compatible storage backends (such as Prometheus itself, Mimir, or other remote storage systems). It abstracts away the protocol details and HTTP communication, letting you focus on preparing and sending your metric data.

The library handles authentication (bearer tokens, basic auth), custom headers, SSL certificate verification, proxy configuration, request retries, and automatic timestamp conversion. It supports batching multiple time series per request and allows configuration of batch sizes and timeouts. The API is straightforward: create a RemoteWriter instance with your endpoint URL and optional auth/headers, then call send() with your metric data.

Use it for

  • Push application metrics from a Python service to a centralized Prometheus or Mimir instance for monitoring and alerting.
  • Export custom time-series data from data processing pipelines to Prometheus-compatible storage for visualization and analysis.
  • Integrate metrics collection into a Python application without running a local Prometheus scraper.
  • Send batch metrics from periodic jobs or cron tasks to a remote Prometheus endpoint.
  • Forward metrics through corporate proxies or to endpoints requiring custom authentication headers.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to push metrics to Prometheus-compatible storage from Python and want a straightforward, low-friction client.

The library is permissively licensed, has no known vulnerabilities, and supports current Python versions. The aging maintenance status is a minor concern—verify that the package still works with your target Prometheus endpoint and that the maintainer responds to issues before committing to a production dependency.

Install

prometheus-remote-writer on PyPI

Before you install

Low friction installation with three runtime dependencies (grpcio-tools, requests, python-snappy). Package is aging (201 days since last release), so maintenance activity is limited but not abandoned.

Requires Python 3.9 or higher; grpcio-tools, requests, and python-snappy must be installable in your environment.

License in practice

Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute the package freely in commercial and open-source projects with minimal restrictions.

Quickstart

pip install prometheus-remote-writer

from prometheus_remote_writer import RemoteWriter

writer = RemoteWriter(
    url='https://prometheus-server/api/v1/write',
    headers={'Authorization': 'Bearer TOKEN'}
)
writer.send([{
    'metric': {'__name__': 'cpu_usage', 'host': 'server1'},
    'values': [23.5],
    'timestamps': [1609459200000]
}])

Verify before relying

  • Whether grpcio-tools, requests, and python-snappy are lightweight or have their own heavy transitive dependencies that could increase install friction in practice.
  • Actual maintenance status and responsiveness to issues, since 'aging' status (201 days) may indicate either stable maturity or dormancy.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
grpcio-toolsrequestspython-snappy
MaintenanceAging 201 days since the last release
First released
Downloads184,472 / month, #10,036 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Evidence: prometheus_remote_writer-1.1.3-py3-none-any.whl

Tags

Capabilities
prometheus remote write clientsend metrics to prometheustime-series data exportprometheus storage integrationremote metrics writerprometheus api clientbatch metric submission
Topics
prometheusmetricstime-series

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “prometheus remote write client”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also prometheus-api-client · opentelemetry-exporter-prometheus-remote-write · opentelemetry-exporter-prometheus · py-grpc-prometheus · redfish · prometheus-client · django-prometheus · prometheus-flask-exporter · aioprometheus · airflow-exporter