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 Consoleastroctl
Deploy Prometheus
astroctl app apply -f applications/helm/prometheus/prometheus.yamlGet the Prometheus name
astroctl app get prometheusGet the Prometheus events
astroctl app events prometheusGet the Prometheus logs
astroctl app logs prometheusGet the Prometheus status
astroctl app status prometheusDelete the application
astroctl app delete prometheusAccess via port-forward
kubectl port-forward $(kubectl get pods -l app.kubernetes.io/name=prometheus,app.kubernetes.io/component=server -o name) 9090:9090Review placeholders and permissions before running commands. Nothing executes from this page.
Nova
Prefer to describe the goal? Ask Nova to review this example and help plan supported actions. Access, policy, and approvals still apply.