mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-07-06 01:41:27 +02:00
560eb0796a
Replace the role=infra NodeTag convention with UserProfileNode adoption as the canonical infrastructure indicator across map, Prometheus metrics, and alerting. Renames is_infra to is_adopted, infra_center to adopted_center. Map icons change to blue (adopted) / green (normal), with all adoption UI gated on OIDC_ENABLED. Adds meshcore_nodes_adopted gauge and Alembic migration to clean up obsolete tags.
17 lines
616 B
YAML
17 lines
616 B
YAML
# Prometheus alert rules for MeshCore Hub
|
|
#
|
|
# These rules are evaluated by Prometheus and fired alerts are sent
|
|
# to Alertmanager for routing and notification.
|
|
|
|
groups:
|
|
- name: meshcore
|
|
rules:
|
|
- alert: NodeNotSeen
|
|
expr: time() - meshcore_node_last_seen_timestamp_seconds{adopted="true"} > 48 * 3600
|
|
for: 5m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: "Adopted node {{ $labels.node_name }} not seen for 48+ hours"
|
|
description: "Adopted node {{ $labels.public_key }} ({{ $labels.adv_type }}) last seen {{ $value | humanizeDuration }} ago."
|