• BACKUP
  • PRUNE
  • CLEAN
  • HUMAN

How to manage prometheus data with your AI

Connect your AI to your Prometheus instance to handle database maintenance and data pruning through natural language.

Ask AI about this page

Short answer

How can I manage Prometheus data using my AI?

Your AI uses this MCP to execute administrative tasks like taking snapshots, removing specific time series, and cleaning up tombstones. You get direct control over your TSDB through your chat interface.

Maintenance outcomes

What you can accomplish

These are the specific results your AI delivers.

BACKUP

Safe data snapshots

The AI creates a point-in-time copy of your TSDB. You get a reliable backup before you make any changes.

PRUNE

Targeted data removal

The AI deletes specific time series you point out. This clears out unwanted metrics or noise.

CLEAN

Database optimization

The AI removes tombstones to keep the database efficient. This helps maintain storage health.

HUMAN

Manual oversight

You decide which series to delete and when to run maintenance. The AI only acts on your specific instructions.

The workflow

What your AI does when <the thing arrives>.

The AI translates your requests into direct database operations.

  1. Check status

    The AI checks the current state of your TSDB to ensure it is ready for maintenance.

    get_status_tsdb
  2. Secure data

    The AI creates a snapshot of the database to prevent data loss before changes occur.

    create_snapshot
  3. Remove metrics

    The AI targets and removes the specific time series you request.

    delete_series
  4. Optimize storage

    The AI clears out tombstones to finalize the cleanup process.

    clean_tombstones

Try it

Copy these to start.

Direct commands you can use immediately.

Starting points

Swap out the metric names or snapshot names for your actual Prometheus identifiers.

Prometheus Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_Z29iBDtEqGksZbbpEnduZ85NzRcrHrhZ5gOCKpq1/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Prometheus capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "prometheus-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Z29iBDtEqGksZbbpEnduZ85NzRcrHrhZ5gOCKpq1/mcp"
    }
  }
}
Copy into chat04
  • Take a snapshot of my Prometheus TSDB right now.

  • Delete the time series for the metric 'node_cpu_seconds_total'.

  • Check the status of my Prometheus TSDB and tell me if it's healthy.

  • Clean up the tombstones in my Prometheus database.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Prometheus once, then ask.

You only need to link your Prometheus instance once. After that, your AI handles all the maintenance tasks described here.

Connect Prometheus to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete my entire database?

    No. The AI can only delete specific time series that you explicitly identify in your prompt.

  • 02

    Will the AI automatically run maintenance every night?

    No. The AI only performs actions like cleaning tombstones or taking snapshots when you specifically ask it to.

  • 03

    Does the AI need my Prometheus password?

    No. Your credentials stay encrypted and are managed by Vinkius, not the AI model.

  • 04

    Can the AI create new metrics?

    No. This MCP is designed for administrative maintenance and data removal, not for ingesting or creating new data.

  • 05

    Can I undo a deletion if I make a mistake?

    Only if you have already used the AI to create a snapshot before the deletion occurred.

  • More questions about Prometheus? The Connector page answers them. See everything the Prometheus Connector can do

Connect Prometheus to Claude, Cursor, ChatGPT & more