Applications / Template

Prometheus

Metrics collection and alerting

Overview

Deploy Prometheus for metrics collection, monitoring, and alerting in your Kubernetes cluster.

Category
Applications
Source
applications/helm/prometheus/prometheus.yaml

Prerequisites & dependencies

  • You must deploy a cluster before deploying Prometheus.
  • You must deploy an application profile before deploying Prometheus.
  • This application is a dependency for the Grafana application if you want to visualize the metrics.

Source manifest

applications/helm/prometheus/prometheus.yaml

# Prometheus server, from its Helm chart
#
# Alertmanager and the Pushgateway are turned off.
#
# Apply: astroctl app apply -f prometheus.yaml
# Chart values: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
apiVersion: platform.astropulse.io/v1
kind: Application
spec:
  name: prometheus
  profileName: <YOUR_PROFILE_NAME>
  namespace: monitoring
  source:
    type: Helm
    helm:
      repo:
        repoURL: https://prometheus-community.github.io/helm-charts
        chartName: prometheus
        chartVersion: 25.27.0
      values:
        object:
          alertmanager:
            enabled: false
          prometheus-pushgateway:
            enabled: false

Deployment guidance

Go straight to Console to create clusters, deploy applications, and manage supported resources. Templates and CLI commands are optional; not every GitHub manifest has an automatic import path.

Console — start directly

Open Console to create or connect infrastructure and deploy applications without running astroctl or copying this YAML first. This template may still require manual setup.

Open Console

astroctl

Deploy Prometheus

astroctl app apply -f applications/helm/prometheus/prometheus.yaml

Get the Prometheus name

astroctl app get prometheus

Get the Prometheus events

astroctl app events prometheus

Get the Prometheus logs

astroctl app logs prometheus

Get the Prometheus status

astroctl app status prometheus

Delete the application

astroctl app delete prometheus

Access via port-forward

kubectl port-forward $(kubectl get pods -l app.kubernetes.io/name=prometheus,app.kubernetes.io/component=server -o name) 9090:9090

Review placeholders and permissions before running commands. Nothing executes from this page.

Get Started

Nova

Prefer to describe the goal? Ask Nova to review this example and help plan supported actions. Access, policy, and approvals still apply.