trustgraph/ts/deploy/prometheus/prometheus.yml

35 lines
932 B
YAML
Raw Normal View History

2026-04-05 22:44:45 -05:00
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: "trustgraph-ts"
scrape_configs:
# Prometheus self-monitoring
- job_name: "prometheus"
scrape_interval: 15s
static_configs:
- targets:
- "prometheus:9090"
# NATS monitoring (uses nats-prometheus-exporter format)
# NATS exposes JSON at /varz, not Prometheus format.
# To get proper Prometheus metrics, deploy nats-exporter sidecar.
# For now, we rely on NATS healthcheck and JetStream monitoring via /jsz.
2026-04-05 22:44:45 -05:00
# OpenTelemetry Collector (exposes Prometheus metrics from OTLP pipeline)
- job_name: "otel-collector"
scrape_interval: 15s
static_configs:
- targets:
- "otel-collector:8889"
# TrustGraph gateway metrics (prom-client)
2026-04-05 22:44:45 -05:00
- job_name: "gateway"
scrape_interval: 15s
metrics_path: "/api/v1/metrics"
2026-04-05 22:44:45 -05:00
static_configs:
- targets:
- "gateway:8088"