---
title: Deploy Prometheus with AI on Blossom
url: "/deploy/prometheus/"
canonical_url: https://blossom88.com/deploy/prometheus/
markdown_url: https://blossom88.com/deploy/prometheus.md
summary: Deploy Prometheus on Blossom and graph a metric from a private sample Service.
categories:
- deployment
- monitoring
stack:
- Go
- React
- PromQL
---

# Deploy Prometheus with AI on Blossom

[Prometheus](https://prometheus.io/) collects and stores time-series
metrics. Use its built-in query browser to graph a measurement from your
app, such as how many jobs are waiting in a queue.

![Check that the private metrics target is up.](/deploy/assets/images/prometheus/target-health.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Prometheus on Blossom and help me graph my first app metric.
>
> Follow this guide: https://blossom88.com/deploy/prometheus/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

Nothing is required beyond your Blossom account.

- **A metrics endpoint** (Later): Start with a private sample Service or use your own /metrics endpoint.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Prometheus | Scrapes targets, stores time series, and runs PromQL queries | Persistent Service |
| Metrics exporter | Serves the measurements you want to collect | Your App or private sample Service |

## Deploy Prometheus

Run the [Apache-2.0 Prometheus image](https://github.com/prometheus/prometheus/blob/main/LICENSE)
as a [Persistent Service](/docs/apps/persistent-services/) with Blossom
Account access. Mount its Volume at `/prometheus`.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the official image and port 9090. Configure the scrape target in
`prometheus.yml`, validate it with `promtool check config`, and keep the
configuration with the deployment. Leave the admin and lifecycle APIs
disabled. A private Service in the same Environment can serve `/metrics`.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data prometheus-plan.yml
    blossom service:create --data prometheus-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Connect a Metrics Target

Add your app’s private metrics endpoint as a scrape target. Open
**Status → Target health** and check that it is up.

> **Ask your AI agent:** Connect Prometheus to my app's metrics endpoint and show me whether it is up.

> Follow this guide: https://blossom88.com/deploy/prometheus/



## Graph Your First Metric

Open **Query**, enter the metric name, and choose **Graph**. With the
sample target, try `demo_queue_depth{queue="demo"}`.

> **Ask your AI agent:** Graph the queue depth from my sample app in Prometheus.

> Follow this guide: https://blossom88.com/deploy/prometheus/



## Keep It Running

Keep the same scrape configuration and Volume when updating
Prometheus. Reopen the same query to see earlier samples alongside new
ones.

![Graph the same queue metric after Container replacement.](/deploy/assets/images/prometheus/query-after-redeploy.webp)

## What You Get

- A private Prometheus dashboard
- A scrape target you can inspect in the dashboard
- A first PromQL graph from app metrics
- Time-series history retained on a Volume

Tested on Blossom: The same PromQL range vector returned earlier scrapes and a new raw scrape after Container replacement.
