updated speed logger

This commit is contained in:
2025-05-13 02:27:03 +02:00
parent 88b3439822
commit 5081df993f
10 changed files with 233 additions and 73 deletions

17
prometheus_test.py Normal file
View File

@@ -0,0 +1,17 @@
from prometheus_client import CollectorRegistry, Gauge, push_to_gateway
# Config
PUSHGATEWAY_URL = "https://pushgateway.cato447.de"
JOB_NAME = "test_push"
# Create a new registry for the job
registry = CollectorRegistry()
test_metric = Gauge('test_metric_value', 'Just a test metric', registry=registry)
# Set the metric value (e.g., random or fixed)
test_metric.set(42)
# Push to the gateway
push_to_gateway(PUSHGATEWAY_URL, job=JOB_NAME, registry=registry)
print("Pushed test metric to Pushgateway.")