mcpField
P
prometheus-monitoring

prometheus-monitoring

github.com/aj-geddesCloud & DevOps373512 installsUpdated 34w ago
Repository

About prometheus-monitoring

A skill for implementing Prometheus monitoring of application and infrastructure metrics. It covers configuration, metric collection, querying, alert rules, and operational practices, with reference guides for Node.js, Python, and Docker Compose.

Key features

  1. 01Configure Prometheus scraping
  2. 02Collect application and infrastructure metrics
  3. 03Set up service discovery
  4. 04Create and test alert rules
  5. 05Apply metric naming and retention practices

Use cases

  1. 01Set up metrics collection for services
  2. 02Instrument Node.js or Python applications
  3. 03Build monitoring infrastructure

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill prometheus-monitoring

After installing, type/prometheus-monitoringin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
alert-rules.md
docker-compose-setup.md
nodejs-metrics-implementation.md
prometheus-configuration.md
python-prometheus-integration.md
scripts/
health-check.sh
templates/
dashboard-config.yaml

Details

From the project README

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:

GuideContents
Prometheus ConfigurationPrometheus Configuration
Node.js Metrics ImplementationNode.js Metrics Implementation
Python Prometheus IntegrationPython Prometheus Integration
Alert RulesAlert Rules
Docker Compose SetupDocker 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

Comments

Markdown supported