# Service Name Mappings for User-Friendly Monitoring
# This file maps IP addresses and ports to friendly service names

service_mappings:
  # HTTP Services
  "http://192.168.50.229:8000": "📄 Paperless-NGX"
  "http://192.168.50.229:3000": "🤖 Paperless-AI"
  "http://192.168.50.229:8081": "☁️ Nextcloud"
  "http://192.168.50.229:8088": "🔐 Vaultwarden (Internal)"
  "http://192.168.50.181:8123": "🏠 Home Assistant"
  "http://192.168.50.181:9000": "🐳 Portainer"
  "http://192.168.50.66:9080": "📱 AppFlowy"
  
  # External Services
  "https://vaultwarden.pressmess.duckdns.org": "🔐 Vaultwarden (External)"
  "https://grafana.pressmess.duckdns.org": "📊 Grafana"
  "https://prometheus.pressmess.duckdns.org": "📈 Prometheus"
  
  # TCP Services
  "192.168.50.229:6379": "🔴 Redis"
  "192.168.50.229:5432": "🐘 PostgreSQL"
  "192.168.50.229:3306": "🐬 MariaDB"
  "192.168.50.229:1883": "📡 Mosquitto MQTT"
  
  # Monitoring Services
  "192.168.50.229:9091": "📈 Prometheus"
  "192.168.50.229:3002": "📊 Grafana"
  "192.168.50.229:9100": "🖥️ Node Exporter"
  "192.168.50.229:9115": "🔍 Blackbox Exporter"
  
  # Container Names
  "vaultwarden_vaultwarden": "🔐 Vaultwarden"
  "monitoring_prometheus": "📈 Prometheus"
  "monitoring_grafana": "📊 Grafana"
  "monitoring_node-exporter": "🖥️ Node Exporter"
  "monitoring_blackbox-exporter": "🔍 Blackbox Exporter"

# Job Name Mappings
job_mappings:
  "http-service-health": "🌐 Web Services"
  "tcp-service-health": "🔌 Database Services"
  "node-exporter": "🖥️ System Metrics"
  "prometheus": "📈 Monitoring"
  "blackbox": "🔍 Health Checks"
  "docker-swarm-metrics": "🐳 Container Orchestration"
  "vaultwarden-monitoring": "🔐 Password Manager"

# Instance Name Transformations
instance_transformations:
  # Remove protocol prefixes
  - pattern: "^https?://"
    replacement: ""
  
  # Remove port numbers for common services
  - pattern: ":80$"
    replacement: ""
  - pattern: ":443$"
    replacement: ""
  
  # Add friendly names
  - pattern: "^192\\.168\\.50\\.229:8000$"
    replacement: "Paperless-NGX"
  - pattern: "^192\\.168\\.50\\.229:3000$"
    replacement: "Paperless-AI"
  - pattern: "^192\\.168\\.50\\.229:8081$"
    replacement: "Nextcloud"
  - pattern: "^192\\.168\\.50\\.229:8088$"
    replacement: "Vaultwarden"
  - pattern: "^192\\.168\\.50\\.181:8123$"
    replacement: "Home Assistant"
  - pattern: "^192\\.168\\.50\\.181:9000$"
    replacement: "Portainer"
  - pattern: "^192\\.168\\.50\\.66:9080$"
    replacement: "AppFlowy"
