What problem does it solve?
LoongCollector's codebase often misuses self-monitoring constructs, leading to inconsistent metrics, alerting patterns, and brittle implementations. This Skill provides a standardized guide to enforce correct self-monitoring usage, focusing on metrics, alarms, coding style, and implementation logic across the project.
Core Features & Use Cases
- Metric naming and unit conventions: Ensure metric prefixes, names, and units follow a single, consistent schema to enable reliable monitoring and aggregation.
- Alarm usage and messaging guidelines: Standardize alarm types, severities, and descriptive messages to reduce noise and improve operability.
- Code quality and guardrails: Promote safe patterns for metric creation, error handling, and dependency management across C++ and Go components.
- Review and deployment guidance: Provide a concrete checklist for developers, reviewers, and CI pipelines to verify adherence before merge.
Quick Start
Run the selfmonitor checks across the repository to enforce the self-monitoring guidelines.