use prometheus sdk to send metrics

This commit is contained in:
xkm
2026-05-05 21:53:17 +08:00
parent 3b089ef196
commit 46471b0c07
8 changed files with 398 additions and 103 deletions

View File

@@ -6,6 +6,7 @@ services:
default: null
ports:
- 4318:4318
- 8080:8080
volumes:
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
victorialogs-1:
@@ -70,12 +71,12 @@ services:
environment:
STARRYSDK_TELEMETRY_ENABLED: "true"
STARRYSDK_SERVICE_NAME: starry-python-sdk-demo
STARRYSDK_METRIC_EXPORT_INTERVAL_MS: "5000"
#OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
STARRYSDK_PROMETHEUS_REMOTE_WRITE_ENDPOINT: http://fluentbit:8080/api/prom/push
STARRYSDK_METRIC_PUSH_INTERVAL_SECONDS: "5"
OTEL_EXPORTER_OTLP_ENDPOINT: http://fluentbit:4318
DEMO_LOOP: "true"
DEMO_INTERVAL_SECONDS: "5"
DEMO_PATHS: ",__sdk_demo_not_found__"
DEFAULT_OTLP_ENDPOINT: "http://fluentbit:4318"
grafana:
image: grafana/grafana-enterprise
ports: