目录

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.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号