#!/bin/bash
# License   :   Apache-2.0 @ https://pigsty.io/docs/about/license/
# Copyright :   2018-2026  Ruohang Feng / Vonng (rh@vonng.com)
# Show VictoriaMetrics service status

echo "=== VictoriaMetrics Status ==="
systemctl status vmetrics --no-pager

echo ""
echo "=== VMAlert Status ==="
systemctl status vmalert --no-pager 2>/dev/null || echo "vmalert not enabled"

echo ""
echo "=== Processes ==="
ps aux | grep -E 'victoria-metrics|vmalert' | grep -v grep
