GithubHelp home page GithubHelp logo

pcf-prometheus-pipeline's Introduction

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:

  • it uses manifests from prometheus-boshrelease
  • it deploys more VMs (firehose_exporter has a dedicated VM, there is a database for Grafana)
  • pipeline property names changed to match the manifests
  • it automatically discovers some of the properties by querying OpsManager (that's why it requires PCF 1.12+)
  • it uses a named runtime-config (a relatively new BOSH feature)
  • it only uses BOSH CLI v2 (directly and through BOSH Deployment Resource)

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:

  • since Prometheus uses a pull mechanism, connections are initiated by Prometheus
  • most of exporters are colocated with Prometheus (exceptions: firehose exporter has a dedicated VM and node_exporter is a BOSH add-on and runs on all VMs)
  • prometheus-boshrelease includes a number of other exporters you can use which are not used in this example; you can see them here

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.

  • clone this repository
  • copy pipeline/params.yml to a different place (to avoid polluting the GIT repo)
  • edit the params accordingly (there are helpful comments)
  • fly -t target set-pipeline -p deploy-prometheus -c pipeline/pipeline.yml -l your-params.yml
  • fly -t target unpause-pipeline -p deploy-prometheus
  • trigger create-uaa-clients job manually
  • trigger install-node-exporter job manually
  • trigger deploy job manually

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:

pcf-prometheus-pipeline's People

Contributors

acloudtechie avatar crsimmons avatar denverops avatar dlapiduz avatar elbandito avatar jacopen avatar mkuratczyk avatar mwilloughby1982 avatar pcfrabbitmq-concourse-ci avatar rmeharg avatar xetamus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.