OpenCensus Prometheus Exporter
Project description
Installation
pip install opencensus-ext-prometheus
Usage
The OpenCensus Prometheus Stats Exporter allows users to export metrics to Prometheus monitoring solution. The API of this project is still evolving. The use of vendoring or a dependency management tool is recommended.
Prometheus Exporter Usage
Prometheus Import
from opencensus.ext.prometheus import stats_exporter as prometheus from opencensus.stats import stats as stats_module
Prometheus Prerequisites
OpenCensus Python libraries require Python 2.7 or later.
Prometheus up and running.
Register the Prometheus exporter
stats = stats_module.stats view_manager = stats.view_manager exporter = prometheus.new_stats_exporter(prometheus.Options(namespace="<namespace>")) view_manager.register_exporter(exporter) ...
Prometheus Code Reference
In the examples folder, you can find all the necessary steps to get the exporter, register a view, put tags on the measure, and see the values against the Prometheus monitoring tool.
For further details for the Prometheus implementation, see the folder prometheus/stats_exporter.
Path & File |
Short Description |
---|---|
contrib/opencensus-ext-prometheus/examples/ |
End to end example |
contrib/opencensus-ext-prometheus/opencensus/ext/prometheus/stats_exporter/ |
Stats implementation for Prometheus |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for opencensus_ext_prometheus-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829e17778126bfb62001a6ea5b9f299c74a30badad416ae3173de498843868d6 |
|
MD5 | 3c33572f9ffb5dbad3a6f01d2017822f |
|
BLAKE2b-256 | 38e1c7a3f277453f215ab931414a2ab82b790c32773c59e6f644114e38d40fb6 |