Prometheus Label Naming Conventions Guide
In Prometheus, labels are typically named following the following naming conventions:
- Name labels using lowercase letters and underscores, avoiding spaces or other special characters.
- Use descriptive names to label, so that they are easier to understand during querying and visualization.
- Avoid using overly long label names, it is best to keep them concise and meaningful.
- Try to avoid using duplicate or redundant labels and make sure each label has a unique meaning.
- To enhance readability, use underscores or hyphens to separate words in label names as needed.
In general, labels should be named following concise, meaningful, and descriptive principles to make Prometheus monitoring and querying more convenient and effective.