aj-geddes/useful-ai-prompts8 files

Prometheus Monitoring

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/prometheus-monitoring
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
8
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/prometheus-monitoringInstalls these files
  • SKILL.md
  • references/alert-rules.md
  • references/docker-compose-setup.md
  • references/nodejs-metrics-implementation.md
  • references/prometheus-configuration.md
  • references/python-prometheus-integration.md
  • scripts/health-check.sh
  • templates/dashboard-config.yaml

What this skill tells the agent

Prometheus Monitoring

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

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

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/prometheus-monitoring, and install it in one click.

Use this skill