# cf-k8s-prometheus **Repository Path**: mirrors_cloudfoundry/cf-k8s-prometheus ## Basic Information - **Project Name**: cf-k8s-prometheus - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cf-k8s-prometheus This repo contains Prometheus components built with an Ubuntu base image (i.e. Prometheus server, statsd_exporter, etc) that can be deployed in a [CF for K8s](https://github.com/cloudfoundry/cf-for-k8s) environment. ### How to Deploy in CF for K8s When deploying the CF for K8s cluster via the [deploy docs](https://github.com/cloudfoundry/cf-for-k8s/blob/master/docs/deploy.md), include the `config` directory as shown below: ``` ytt -f ${WORKSPACE}/cf-for-k8s/config -f ${WORKSPACE}/cf-k8s-prometheus/config -f ${TMP_DIR}/cf-values.yml > ${TMP_DIR}/cf-for-k8s-rendered.yml ``` To view the Prometheus UI, use `kubectl port-forward -n cf-system 9090`. If you wish to deploy Grafana alongside Prometheus: ``` ytt -f ${WORKSPACE}/cf-for-k8s/config -f ${WORKSPACE}/cf-k8s-prometheus/config -f ${WORKSPACE}/cf-k8s-prometheus/experimental/add-grafana.yml -f ${TMP_DIR}/cf-values.yml > ${TMP_DIR}/cf-for-k8s-rendered.yml ``` To view Grafana, use `kubectl port-forward -n cf-system 3000`. Default username/password is `admin/admin` and any changes you make in the UI will be blown away on the next deployment update. ### Have a question or feedback, reach out to us Reach out to us in the Cloud Foundry Slack channel [#logging-and-metrics](https://cloudfoundry.slack.com/archives/CUW93AF3M). To request a response during Mountain Time business hours, tag your message with @interrupt.