Generated banner for Prometheus Configuration
Generated logo for Prometheus Configuration

Prometheus Configuration

Seth HobsonCommunityCreated by Seth Hobson

  • Skill
  • Tool integration
  • Cloud and DevOps
  • MIT
  • Low risk

From the author

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
— the description by Seth Hobson

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured approach to setting up Prometheus for monitoring environments. It covers installation patterns for Kubernetes and Docker, configuration of scrape targets, service discovery mechanisms, and best practices for maintaining a robust monitoring system. The documentation includes guidance on recording rules, alert configuration, and scaling strategies for long-term storage.

What it does

  • Provides installation patterns for Prometheus using Helm or Docker Compose.
  • Explains the structure and configuration of the main configuration file.
  • Details methods for static and dynamic service discovery.
  • Outlines best practices for metric naming, retention, and high availability.
  • Offers guidance on integrating with Alertmanager and long-term storage solutions.
  • Includes methods for verifying scrape targets and configuration status.

When to use it

  • When deploying a new Prometheus monitoring instance.
  • When adding new infrastructure or application targets to an existing monitoring setup.
  • When designing alerting rules or recording rules for complex queries.
  • When implementing service discovery for dynamic environments like Kubernetes.
  • When optimizing metric retention and storage configurations.

Advantages

  • Centralizes metric collection and monitoring configuration.
  • Supports both static and dynamic service discovery patterns.
  • Provides clear architectural guidance for scaling and long-term storage.
  • Includes actionable patterns for common deployment scenarios.

Usage examples

“How do I set up Prometheus on Kubernetes using Helm?”
The skill provides the specific repository addition and installation commands to deploy the kube-prometheus-stack in a dedicated namespace.
“Show me how to configure Prometheus to scrape targets from a file.”
The skill demonstrates the use of file-based service discovery within the scrape configuration, including the format for target files.
“How can I verify that my Prometheus configuration is valid?”
The skill provides instructions on how to check the status of the configuration via the API.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/wshobson/prometheus-configuration/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip prometheus-configuration.zip -d .agents/skills

Documentation by Seth Hobson

Prometheus Configuration

Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.

Purpose

Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.

When to Use

  • Set up Prometheus monitoring

  • Configure metric scraping

  • Create recording rules

  • Design alert rules

  • Implement service discovery

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Use consistent naming for metrics (prefix_name_unit)

  2. Set appropriate scrape intervals (15-60s typical)

  3. Use recording rules for expensive queries

  4. Implement high availability (multiple Prometheus instances)

  5. Configure retention based on storage capacity

  6. Use relabeling for metric cleanup

  7. Monitor Prometheus itself

  8. Implement federation for large deployments

  9. Use Thanos/Cortex for long-term storage

  10. Document custom metrics

Troubleshooting

Check scrape targets:

curl http://localhost:9090/api/v1/targets

Check configuration:

curl http://localhost:9090/api/v1/status/config

Test query:

curl 'http://localhost:9090/api/v1/query?query=up'
  • grafana-dashboards - For visualization

  • slo-implementation - For SLO monitoring

  • distributed-tracing - For request tracing

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs network access

Security

What our scanner noticed· Low risk

  • Instructions that use the network

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Seth Hobson
Publisher
Seth Hobson (Community)
Source
wshobson/agents · plugins/observability-monitoring/skills/prometheus-configuration · commit 4bde316
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Seth Hobson.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download prometheus-configuration.zip