Skip to main content

Metrics Accumulator
Metrics Accumulator

metrics-accumulator-client

This is the official Python client for metric accumulator.

Get Started

Start an instance of metric-accumulator

docker run \ 
 -p 8080:8080 \ 
 bpoole6/metrics-accumulator

It is highly advised that you disable the created metrics. The Metrics accumulator doesn't handle the created metrics at this time.

from prometheus_client import metrics
metrics.disable_created_metrics()

Create main.js file

from Client import Client, strip_forward_slash
from prometheus_client import exposition, Counter,Gauge, CollectorRegistry, metrics
metrics.disable_created_metrics()
registry = CollectorRegistry()
c = Counter("hello_total", "dock", labelnames=['application'], registry=registry)
c.labels(["app"]).inc()

g = Gauge("man", "dock", labelnames=['application'], registry=registry)
g.labels(["app"]).inc()

client = Client("http://localhost:8080", "0d98f65f-074b-4d56-b834-576e15a3bfa5")
client.update_metrics("default", registry)
print(client.get_metric_group("default").content.decode())
print(client.reload_configurations().status_code)
print(client.reset_metric_group("default").status_code)
print(client.service_discovery().status_code)
print(client.current_configurations().status_code)

Please see metric accumulator for official documentation.

Metadata

Release files for metrics-accumulator-client 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metrics-accumulator-client 1.1.5
File Size Uploaded Provenance
metrics_accumulator_client-1.1.5.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for metrics-accumulator-client 1.1.5
File Interpreter ABI Platform
metrics_accumulator_client-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / metrics_accumulator_client-1.1.5.tar.gz

Download URL metrics_accumulator_client-1.1.5.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
52ce03217e4132384b51d568516c7b9ae2414e1e81531d14fbc828a73ef8e157
BLAKE2b-256 checksum
How to use checksums
406e0252ff474d1b2a7d7772bbb1baee7042537c565fc6184ef51dddb300acd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / metrics_accumulator_client-1.1.5-py3-none-any.whl

Download URL metrics_accumulator_client-1.1.5-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3a3550b550b8295f96178e3275840bff6a14c62eab05113f51585950f6c3582
BLAKE2b-256 checksum
How to use checksums
8ac946215af6a4cf05fc602524791151e046a8bb3cee5745b933fe71e15709f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Security for metrics-accumulator-client 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page