Skip to main content
APA
Sponsored by CAST AI — Kubernetes cost optimization Better Stack — Uptime monitoring and log management
⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

APC UPS Prometheus Alert Rules

6 Prometheus alerting rules for APC UPS. Exported via mdlayher/apcupsd_exporter. These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/apc-ups/apcupsd_exporter.yml
critical

13.1.1. APC UPS Battery nearly empty

Battery is almost empty (< 10% left)

- alert: APCUPSBatteryNearlyEmpty
  expr: apcupsd_battery_charge_percent < 10
  for: 0m
  labels:
    severity: critical
  annotations:
    summary: APC UPS Battery nearly empty (instance {{ $labels.instance }})
    description: "Battery is almost empty (< 10% left)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
critical

13.1.2. APC UPS Less than 15 Minutes of battery time remaining

Battery is almost empty (< 15 Minutes remaining)

- alert: APCUPSLessThan15MinutesOfBatteryTimeRemaining
  expr: apcupsd_battery_time_left_seconds < 900
  for: 0m
  labels:
    severity: critical
  annotations:
    summary: APC UPS Less than 15 Minutes of battery time remaining (instance {{ $labels.instance }})
    description: "Battery is almost empty (< 15 Minutes remaining)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

13.1.3. APC UPS AC input outage

UPS now running on battery (since {{$value | humanizeDuration}})

- alert: APCUPSACInputOutage
  expr: apcupsd_battery_time_on_seconds > 0
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: APC UPS AC input outage (instance {{ $labels.instance }})
    description: "UPS now running on battery (since {{$value | humanizeDuration}})\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

13.1.4. APC UPS low battery voltage

Battery voltage is lower than nominal (< 95%)

- alert: APCUPSLowBatteryVoltage
  expr: (apcupsd_battery_volts / apcupsd_battery_nominal_volts) < 0.95 and apcupsd_battery_nominal_volts > 0
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: APC UPS low battery voltage (instance {{ $labels.instance }})
    description: "Battery voltage is lower than nominal (< 95%)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

13.1.5. APC UPS high temperature

Internal temperature is high ({{$value}}°C)

- alert: APCUPSHighTemperature
  expr: apcupsd_internal_temperature_celsius >= 40
  for: 2m
  labels:
    severity: warning
  annotations:
    summary: APC UPS high temperature (instance {{ $labels.instance }})
    description: "Internal temperature is high ({{$value}}°C)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

13.1.6. APC UPS high load

UPS load is > 80%

- alert: APCUPSHighLoad
  expr: apcupsd_ups_load_percent > 80
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: APC UPS high load (instance {{ $labels.instance }})
    description: "UPS load is > 80%\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"