File contents Prometheus Monitoring
Table of Contents
Overview
Implement comprehensive Prometheus monitoring infrastructure for collecting, storing, and querying time-series metrics from applications and infrastructure.
When to Use
Setting up metrics collection
Creating custom application metrics
Configuring scraping targets
Implementing service discovery
Building monitoring infrastructure
Quick Start
Minimal working example:
# /etc/prometheus/prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: production
alerting:
alertmanagers:
- static_configs:
- targets: ["localhost:9093"]
rule_files:
- "/etc/prometheus/alert_rules.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node"
static_configs:
- targets: ["localhost:9100"]
- job_name: "api-service"
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
Guide
Contents
Prometheus Configuration
Prometheus Configuration
Node.js Metrics Implementation
Node.js Metrics Implementation
Python Prometheus Integration
Python Prometheus Integration
Alert Rules
Alert Rules
Docker Compose Setup
Docker Compose Setup
Best Practices
✅ DO
Use consistent metric naming conventions
Add comprehensive labels for filtering
Set appropriate scrape intervals (10-60s)
Implement retention policies
Monitor Prometheus itself
Test alert rules before deployment
Document metric meanings
❌ DON'T
Add unbounded cardinality labels
Scrape too frequently (< 10s)
Ignore metric naming conventions
Create alerts without runbooks
Store raw event data in Prometheus
Use counters for gauge-like values
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: aj-geddes-useful-ai-prompts-prometheus-monitoring 3 description: Prometheus Monitoring 4 --- 5 6 # Prometheus Monitoring 7 8 ## Table of Contents 9 10 - [Overview](#overview) 11 - [When to Use](#when-to-use) 12 - [Quick Start](#quick-start) 13 - [Reference Guides](#reference-guides) 14 - [Best Practices](#best-practices) 15 16 ## Overview 17 18 Implement comprehensive Prometheus monitoring infrastructure for collecting, storing, and querying time-series metrics from applications and infrastructure. 19 20 ## When to Use 21 22 - Setting up metrics collection 23 - Creating custom application metrics 24 - Configuring scraping targets 25 - Implementing service discovery 26 - Building monitoring infrastructure 27 28 ## Quick Start 29 30 Minimal working example: 31 32 ```yaml 33 # /etc/prometheus/prometheus.yml 34 global: 35 scrape_interval: 15s 36 evaluation_interval: 15s 37 external_labels: 38 cluster: production 39 40 alerting: 41 alertmanagers: 42 - static_configs: 43 - targets: ["localhost:9093"] 44 45 rule_files: 46 - "/etc/prometheus/alert_rules.yml" 47 48 scrape_configs: 49 - job_name: "prometheus" 50 static_configs: 51 - targets: ["localhost:9090"] 52 53 - job_name: "node" 54 static_configs: 55 - targets: ["localhost:9100"] 56 57 - job_name: "api-service" 58 // ... (see reference guides for full implementation) 59 ``` 60 61 ## Reference Guides 62 63 Detailed implementations in the `references/` directory: 64 65 | Guide | Contents | 66 |---|---| 67 | [Prometheus Configuration](references/prometheus-configuration.md) | Prometheus Configuration | 68 | [Node.js Metrics Implementation](references/nodejs-metrics-implementation.md) | Node.js Metrics Implementation | 69 | [Python Prometheus Integration](references/python-prometheus-integration.md) | Python Prometheus Integration | 70 | [Alert Rules](references/alert-rules.md) | Alert Rules | 71 | [Docker Compose Setup](references/docker-compose-setup.md) | Docker Compose Setup | 72 73 ## Best Practices 74 75 ### ✅ DO 76 77 - Use consistent metric naming conventions 78 - Add comprehensive labels for filtering 79 - Set appropriate scrape intervals (10-60s) 80 - Implement retention policies 81 - Monitor Prometheus itself 82 - Test alert rules before deployment 83 - Document metric meanings 84 85 ### ❌ DON'T 86 87 - Add unbounded cardinality labels 88 - Scrape too frequently (< 10s) 89 - Ignore metric naming conventions 90 - Create alerts without runbooks 91 - Store raw event data in Prometheus 92 - Use counters for gauge-like values 93 94 --- 95 > Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions. 96 <!-- tomevault:4.0:skill_md:2026-04-11 -->
tomevault-io/skills-registry/tree/main/aj-geddes--useful-ai-prompts--prometheus-monitoring commit 529e3991e7
Frequently asked questions How do I install the Aj Geddes Useful AI Prompts Prometheus Monitoring skill? Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-prometheus-monitoring in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Aj Geddes Useful AI Prompts Prometheus Monitoring skill do? Prometheus Monitoring It is listed under Coding & Dev Tools on SkillMD.
Is Aj Geddes Useful AI Prompts Prometheus Monitoring safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Aj Geddes Useful AI Prompts Prometheus Monitoring? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Aj Geddes Useful AI Prompts Prometheus Monitoring free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Aj Geddes Useful AI Prompts Prometheus Monitoring? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.