vmware-archive / pcf-prometheus-pipeline

Apache License 2.0
20 stars 38 forks source link

Concourse pipeline for deploying Prometheus to monitor Pivotal Cloud Foundry

This pipeline is only compatible with PCF 1.12 and newer. If you are using an older version then please use this pipeline instead.

Main differences compared to the old pipeline:

This pipeline deploys Prometheus BOSH release to monitor PCF but can be deployed to a separate BOSH Director. Use director_for_deployment property to configure whether you want to deploy it to OpsManager Director or a separate BOSH Director.

How it works

This is a high-level overview of monitoring Cloud Foundry with Prometheus logical diagram

Notes:

Installation

First of all, have a Concourse running. If you don't have Concourse yet, you can quickly spin one up using BUCC or Concourse-Up.

How to use it

If the deployment was successful use bosh vms to find out the IP address of your nginx server. Then connect:

There is a number of ready to use Dashboards that should be installed automatically. You can edit them in Grafana or create your own. They are coming from prometheus-boshrelease/jobs.

Alertmanager

Warning Current version doesn't allow you to easily configure your alertmanager notifications. This should be fixed soon.

The prometheus-boshrelease does include some predefined alerts for CloudFoundry as well as for BOSH. You can find the alert definitions in prometheus-boshrelease/jobs. Check the *.alerts rule files in the corresponding folders.

Access the AlertManager to see active alerts or silence them:

All configured rules as well as their current state can be viewed by accessing Prometheus: