界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

rhel-monitoring

rhel-monitoring

【开发与工程】Use when setting up monitoring and logging on RHEL 9 (and AlmaLinux/Rocky 9) — Prometheus and node_exporter, Grafana dashboards, Loki/Promtail log aggregation, ELK stack, Alertmanager, Performance Co-Pilot (PCP), rsyslog, systemd journal management, Cockpit monitoring, and health check patterns. Part of the rhel-* skill family.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: rhel-monitoring description: Use when setting up monitoring and logging on RHEL 9 (and AlmaLinux/Rocky 9) — Prometheus and node_exporter, Grafana dashboards, Loki/Promtail log aggregation, ELK stack, Alertmanager, Performance Co-Pilot (PCP), rsyslog, systemd journal management, Cockpit monitoring, and health check patterns. Part of the rhel-* skill family. family: rhel applies_when: os_family == rhel

Red Hat Enterprise Linux 9 — Monitoring and Logging

Companion skill to rhel-server-admin. Covers metrics collection, visualization, log aggregation, alerting, and health checks on RHEL 9.x (and compatible: AlmaLinux 9, Rocky Linux 9, Oracle Linux 9).


Reference Files

Detailed code examples, patterns, and configuration are in the reference files below. Read the relevant file when working on that area.

FileCovers
loki-pcp-elk-rsyslog-healthchecks.mdLoki + Promtail, Performance Co-Pilot (PCP), ELK Stack, rsyslog, Cockpit monitoring, health check patterns, and SELinux contexts
prometheus-grafana-alertmanager.mdPrometheus installation and configuration, node_exporter, Grafana dashboards, and Alertmanager setup


Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Alerting on every metric threshold without tuningAlert fatigue — operators ignore alerts when 90% are noise; real incidents get buriedStart with critical alerts only (disk 90%, memory 95%, service down); tune thresholds based on baseline; review alert volume weekly
No log rotation or retention policy/var/log fills the root filesystem; system stops functioning; log data from 3 years ago wastes storageConfigure logrotate for all application logs; set journal retention (SystemMaxUse); archive to central logging
Monitoring only system metrics, not application healthCPU and memory look fine while the application returns 500 errors; users report outage before monitoring detects itAdd application-level health endpoints; monitor HTTP status codes, response latency, and error rates alongside system metrics
Installing Prometheus without persistent storagePrometheus restart loses all historical data; capacity planning and trend analysis become impossibleConfigure Prometheus with persistent volume (--storage.tsdb.path); set retention period (--storage.tsdb.retention.time)
Not correlating logs with metrics during incidentsMetrics show a spike but no context; logs show errors but no timing; incident diagnosis takes hours instead of minutesUse shared labels/tags across metrics (Prometheus) and logs (Loki/ELK); link dashboards to log queries for drill-down

Related Skills

WorkloadSkill
Core system admin (packages, users, firewall, disk)rhel-server-admin
Web servers (Nginx, Apache, Caddy)rhel-web-servers
Databases (PostgreSQL, MySQL, Redis)rhel-databases
Docker / Podman containersrhel-docker-host
File sharing (NFS, Samba, Stratis)rhel-file-storage
DNS, DHCP, NTPrhel-network-infra
NVIDIA GPU, Ollama, CUDArhel-ollama-nvidia
我的收藏