prometheus-remote-writer
A Python package to send data using Prometheus remote write protocol.
Decision gist · record as of 2026-08-14
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
Alternatives
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.
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.
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
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesgrpcio-toolsrequestspython-snappy |
| Maintenance | Aging 201 days since the last release |
| First released | |
| Downloads | 184,472 / month, #10,036 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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
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”
- prometheus-remote-writerSends time-series metrics to Prometheus-compatible remote storage…
- opentelemetry-exporter-prometheus-remote-writeExports metrics from OpenTelemetry Python SDK directly to Prometheus…
- prometheus-clientInstruments Python applications to expose metrics in Prometheus…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
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.
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.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
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.
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.
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.
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