The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
Development · 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.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

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
Saved skills