Skip to main content

Python wrapper for Prometheus Node Collector https://github.com/shadowy-pycoder/go-node-collector

Project description

Python Node Collector

A python wrapper for Prometheus Node Collector

Installation

pip install py-node-collector

Usage

from prometheus_client import parser
from py_node_collector import collector

metric = next(parser.text_string_to_metric_families(collector.collect()))
print(metric)
# Output
Metric(go_gc_duration_seconds, A summary of the pause duration of garbage collection cycles., summary, , 
[Sample(name='go_gc_duration_seconds', labels={'quantile': '0'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.25'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.5'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.75'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '1'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds_sum', labels={}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds_count', labels={}, value=0.0, timestamp=None, exemplar=None)])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

py_node_collector-0.0.3-py312-none-any.whl (22.9 MB view hashes)

Uploaded Python 3.12

py_node_collector-0.0.3-py311-none-any.whl (22.9 MB view hashes)

Uploaded Python 3.11

py_node_collector-0.0.3-py310-none-any.whl (22.9 MB view hashes)

Uploaded Python 3.10

py_node_collector-0.0.3-py39-none-any.whl (22.9 MB view hashes)

Uploaded Python 3.9

py_node_collector-0.0.3-py38-none-any.whl (22.9 MB view hashes)

Uploaded Python 3.8

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page