Prometheus Migration Tool

    2

    Cut observability cost 60-80%. Migrate Datadog/New Relic to Prometheus + Grafana + Loki. Cost calc, dashboard converter, runbook.

    Free

    5 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    prometheus-migration-tool

    Example session with this skill installed

    We spend 25k on Datadog for 150 hosts and 40M metrics. Plan a migration to self-hosted Prometheus and convert our main dashboard.

    • Read your context and instructions
    • Compiled the prometheus-migration-tool

    Migration Plan

    1. Savings: 82% ($20.5k/mo).
    2. Infrastructure: 3x r5.xlarge instances.
    3. Configs: Generated prometheus.yml for 150 hosts.
    4. Dashboard: converted_main_dash.json ready for Grafana.
      Next: Run phase 1 discovery script.
    Generated prometheus.yml

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Prometheus Migration Tool

    Datadog just raised prices again. Your observability bill is $40k/month. This skill migrates you to Prometheus + Grafana + Loki for 60-80% less, with the same UX.

    What it does

    End-to-end migration from any monitoring system to Prometheus + Grafana + Loki:

    • Cost calculator — compare current spend vs self-hosted, with real pricing
    • Source discovery — auto-detect services, metric types, tags
    • Metric mapping — Datadog metric → Prometheus metric
    • Scrape config generator — ready-to-deploy prometheus.yml
    • Dashboard converter — Datadog JSON → Grafana JSON
    • Alert translator — Datadog monitor → Prometheus alert rule
    • Log pipeline — log forwarding (Fluent Bit / Vector) + Loki
    • Migration runbook — phased rollout, rollback plan

    When to use it

    • Datadog / New Relic raised prices and you want out
    • Your observability bill is > 30% of cloud bill
    • You want vendor independence
    • You need on-prem observability (air-gapped, regulated)
    • You're scaling to 10k+ services and per-host pricing kills you

    Why it's better than ad-hoc prompting

    Most "migrate to Prometheus" prompts give generic advice. This skill is different:

    • Real pricing — uses actual 2026 rates from Datadog, New Relic, Grafana
    • Concrete configs — ready-to-deploy prometheus.yml, not pseudocode
    • Dashboard converter — actually translates Datadog JSON to Grafana JSON
    • Phased plan — week-by-week rollout, not "just do it"
    • Rollback strategy — because migrations fail

    Architecture

    ┌─────────────────────────────────────────────────────────┐
    │               Agent (Claude/Cursor)                     │
    │  - Asks about current stack, scale, budget              │
    │  - Reads Datadog JSON / config files                    │
    │  - Generates complete migration plan                    │
    └───────────────┬─────────────────────────────────────────┘
                    │
                    ▼
    ┌─────────────────────────────────────────────────────────┐
    │        skills/prometheus-migration-tool/                │
    │  scripts/                                                │
    │    ├── cost_calc.py        # Current vs target cost     │
    │    ├── discover.py         # Find services + metrics    │
    │    ├── gen_prometheus.py   # prometheus.yml             │
    │    ├── convert_dashboards.py # Datadog → Grafana        │
    │    ├── translate_alerts.py # Datadog monitor → Prom    │
    │    ├── gen_log_pipeline.py # Fluent Bit / Vector config │
    │    ├── gen_runbook.py      # Phased migration plan      │
    │    └── validate.py         # Test scrape configs        │
    │  references/                                             │
    │    ├── pricing-2026.md      # Real prices for comparison│
    │    ├── metric-mapping.md    # Datadog → Prometheus      │
    │    ├── grafana-vs-datadog.md                              │
    │    ├── self-hosting-options.md                            │
    │    └── rollout-strategy.md                                │
    │  templates/                                              │
    │    ├── prometheus.yml                                │
    │    ├── alertmanager.yml                              │
    │    ├── grafana-dashboard.json                        │
    │    ├── promtail-config.yaml                          │
    │    └── docker-compose.yml                            │
    └─────────────────────────────────────────────────────────┘
    

    Quick start

    # 1. Install
    pip install pyyaml requests datadog-api-client
    
    # 2. Cost comparison
    python scripts/cost_calc.py --current datadog --hosts 200 --metrics 50M --logs 100GB --out cost-report.md
    
    # 3. Discover current services
    python scripts/discover.py --source datadog --api-key $DD_KEY --app-key $DD_APP --out services.json
    
    # 4. Generate Prometheus config
    python scripts/gen_prometheus.py --services services.json --out prometheus.yml
    
    # 5. Convert dashboards
    python scripts/convert_dashboards.py --input dashboards/datadog/ --output grafana/
    
    # 6. Translate alerts
    python scripts/translate_alerts.py --input monitors.json --out alertmanager.yml
    
    # 7. Generate log pipeline
    python scripts/gen_log_pipeline.py --source datadog-logs --target loki --out fluent-bit.conf
    
    # 8. Generate migration runbook
    python scripts/gen_runbook.py --current datadog --hosts 200 --timeline 8w --out runbook.md
    
    # 9. Validate scrape configs
    python scripts/validate.py prometheus.yml
    

    Cost comparison (real 2026 pricing)

    Scenario: 200 hosts, 50M metrics/month, 100GB logs/month

    ComponentDatadogSelf-hosted (Prometheus + Loki)Managed (Grafana Cloud)
    Metrics$7,500$1,200 (infra)$4,500
    Logs$9,200$800 (S3 + queries)$3,800
    Traces (APM)$5,400$1,500 (Tempo)$4,200
    Dashboardsincluded$0 (Grafana OSS)included
    Total$22,100$3,500$12,500
    Savings—84% ($18,600/mo)43% ($9,600/mo)

    Plus: vendor lock-in, full data control, customization freedom.

    The metric mapping (Datadog → Prometheus)

    DatadogPrometheusNotes
    system.cpu.usernode_cpu_seconds_total{mode="user"}Different unit
    aws.ec2.cpuutilizationnode_cpu_seconds_total (via node_exporter)Requires node_exporter
    http_requests{service:x}http_requests_total{service="x"}Naming convention
    datadog.estimated_usage.metricsup + customHarder to migrate
    trace.<span>.durationtraces_spanmetrics_latency_* (Tempo)Via OTel

    The 4 phases of migration

    Phase 1: Discover + Plan (1 week)

    • Inventory current usage (cost calculator)
    • Identify critical dashboards / alerts
    • Define "must have" vs "nice to have"
    • Select target (self-hosted vs managed)

    Phase 2: Stand up target (1-2 weeks)

    • Deploy Prometheus + Grafana + Loki
    • Configure scrape for 1-2 non-critical services
    • Validate metric collection
    • Build 1-2 example dashboards

    Phase 3: Shadow run (2-3 weeks)

    • Run both old and new in parallel
    • Compare metric values (Datadog vs Prometheus)
    • Convert all dashboards
    • Translate all alerts
    • Train team

    Phase 4: Cutover + cleanup (2 weeks)

    • Switch default to new system
    • Monitor for gaps
    • Decommission old (after 30-day shadow)
    • Document lessons learned

    Sample output: Cost report

    ## Observability Cost Analysis
    
    ### Current (Datadog)
    - 200 hosts × $15/host = $3,000
    - 50M custom metrics × $0.05/1000 = $2,500
    - 100GB logs × $0.10/GB = $10,000
    - APM 200 hosts × $31 = $6,200
    - Synthetics: $500
    - **Total: $22,200/month**
    
    ### Target: Self-hosted (Prometheus + Loki)
    - 3× m5.4xlarge ($1,200/mo) — Prometheus + Grafana
    - 5× r5.2xlarge for Loki ingest ($2,000/mo)
    - S3 storage 10TB ($230/mo)
    - EBS + transfer: $200/mo
    - **Total: $3,630/month**
    
    ### Savings
    - **Monthly: $18,570 (84%)**
    - **Annual: $222,840**
    
    ### Migration cost (one-time)
    - Engineering time: 4-6 weeks × 2 engineers
    - Tools: $0 (all OSS)
    - Consultant (optional): $20-50k
    - **Break-even: 1-3 months**
    

    Pricing

    Single-purchase, lifetime access. $12.00.

    Includes:

    • 8 Python migration scripts
    • 5 reference docs (pricing, mapping, comparison, self-hosting, rollout)
    • 5 ready-to-deploy templates (Prometheus, alertmanager, dashboard, log, compose)
    • Real 2026 pricing for Datadog / New Relic / Grafana / Grafana Cloud
    • Future updates for the same major version

    Example usage

    "We're paying Datadog $22k/month. Need to cut 60%. Plan a migration to self-hosted Prometheus. We have 200 hosts, 50M metrics, 100GB logs."

    The skill will:

    1. Calculate current vs target cost ($22k → $3.5k, savings $18.5k/mo)
    2. Generate prometheus.yml for 200 hosts
    3. Convert your top 10 Datadog dashboards
    4. Translate your critical alerts
    5. Generate Fluent Bit config for log forwarding
    6. Output 8-week migration runbook with rollback

    Compatibility

    Works with any agent that supports the SKILL.md standard and can execute Python: Claude Code, OpenClaw, Codex CLI, Cursor, Gemini CLI, Cline, Windsurf, Aider. Outputs: Prometheus 2.x, Grafana 10.x, Loki 2.x, AlertManager 0.27+. Tested on Linux, macOS, Windows.

    Tags

    prometheus, grafana, observability, datadog, newrelic, cloudwatch, monitoring, sre, migration

    • Historical data backfill not automated
    • Custom Datadog formulas may require manual review
    • APM span filtering rules need manual validation

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    5 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 months ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Listed4 months ago

    What's inside

    Frequently Asked Questions

    The tool automates the transition from expensive SaaS platforms like Datadog or New Relic to an open-source Prometheus, Grafana, and Loki stack, typically reducing monthly observability costs by 60-80%.

    This skill provides 8 specialized Python scripts, 5 reference documents (including 2026 pricing benchmarks), and production-ready templates for prometheus.yml, alertmanager, and Grafana dashboards.

    Yes, the Dashboard Converter and Alert Translator scripts can read your existing Datadog JSON configurations and automatically generate equivalent Grafana JSON and Prometheus alert rules.

    The skill is designed for any AI agent that can execute Python scripts and read local files, including Claude Code, Cursor, Windsurf, Aider, and Cline.

    The tool generates configurations compatible with Prometheus 2.x, Grafana 10.x+, Loki 2.x+, and AlertManager 0.27+, supporting both self-hosted and managed (e.g., Grafana Cloud) targets.

    After paying the one-time $12.00 fee, you receive lifetime access to the current major version, including any future updates or updated pricing data for that version.

    New in DevOps & Cloud

    Free