Skip to content

Instantly share code, notes, and snippets.

@DrJosh9000
Last active September 25, 2025 03:20
Show Gist options
  • Select an option

  • Save DrJosh9000/a473ca09a4e65332685990e9516cc2c9 to your computer and use it in GitHub Desktop.

Select an option

Save DrJosh9000/a473ca09a4e65332685990e9516cc2c9 to your computer and use it in GitHub Desktop.
install kube-prometheus-stack and agent-stack-k8s
# Install kube-prometheus-stack, configured for reading all available
# PodMonitors (in any namespace) and enabling native histograms.
helm install kube-prometheus-stack oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack \
--create-namespace --namespace monitoring \
--set prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues=false \
--set prometheus.prometheusSpec.enableFeatures='{native-histograms}'
# Install agent-stack-k8s (fill in your agent token).
# Must be at least v0.32.0 to deploy monitoring components.
helm install agent-stack-k8s oci://public.ecr.aws/buildkite/helm/agent-stack-k8s \
--create-namespace --namespace buildkite \
--set agentToken='PUT YOUR AGENT TOKEN HERE' \
--set monitoring.podMonitor.deploy=true \
--set monitoring.deployGrafanaDashboard=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment