Skip to content

trecnoc/cf-k8s-prometheus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 environment.

How to Deploy in CF for K8s

When deploying the CF for K8s cluster via the deploy docs, 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 <prometheus-server-pod> -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 <grafana-pod> -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. To request a response during Mountain Time business hours, tag your message with @interrupt.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 80.2%
  • Shell 19.8%