mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-03-28 17:42:56 +01:00
Add /metrics endpoint with Prometheus gauges for nodes, messages, advertisements, telemetry, trace paths, events, and members. Include per-node last_seen timestamps for alerting. Add Alertmanager service to Docker Compose metrics profile with default blackhole receiver. Add NodeNotSeen alert rule (48h threshold). Add 1h time window to all windowed metrics alongside existing 24h/7d/30d windows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
930 B
YAML
36 lines
930 B
YAML
# Alertmanager configuration for MeshCore Hub
|
|
#
|
|
# Default configuration routes all alerts to a "blackhole" receiver
|
|
# (logs only, no external notifications).
|
|
#
|
|
# To receive notifications, configure a receiver below.
|
|
# See: https://prometheus.io/docs/alerting/latest/configuration/
|
|
#
|
|
# Examples:
|
|
#
|
|
# Email:
|
|
# receivers:
|
|
# - name: 'email'
|
|
# email_configs:
|
|
# - to: 'admin@example.com'
|
|
# from: 'alertmanager@example.com'
|
|
# smarthost: 'smtp.example.com:587'
|
|
# auth_username: 'alertmanager@example.com'
|
|
# auth_password: 'password'
|
|
#
|
|
# Webhook (e.g. Slack incoming webhook, ntfy, Gotify):
|
|
# receivers:
|
|
# - name: 'webhook'
|
|
# webhook_configs:
|
|
# - url: 'https://example.com/webhook'
|
|
|
|
route:
|
|
receiver: 'default'
|
|
group_by: ['alertname']
|
|
group_wait: 30s
|
|
group_interval: 5m
|
|
repeat_interval: 4h
|
|
|
|
receivers:
|
|
- name: 'default'
|