GithubHelp home page GithubHelp logo

micabe / prometheus-service-discovery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awsprof/prometheus-service-discovery

0.0 0.0 0.0 6 KB

A repo that contains a prometheus, grafana, consul service discovery configuration along with alertmanager

Shell 100.00%

prometheus-service-discovery's Introduction

Service Discovery using Consul for Prometheus as Docker containers

WHY this?

I found several examples of prometheus and grafana within docker containers. However, I could not find one example where Prometheus Service Discovery via Consul worked completely within Docker containers including Alert Manager. Had to put this together to ensure it helped someone who needed it.

Description

A simple docker-compose configuration that allows the following services to run as docker containers

  • prometheus
  • grafana
  • cadvisor
  • consul
  • node-exporter
  • alert-manager sending alerts to slack

All the configuration items are there. Alert Manager rules can be extended and when new serivces are registered with Consul, Prometheus auto discovers the services.

Installation

  • Edit the file data/alertmanager.yml
  • Replace the placeholder <<API_URL>> with your Slack webhook URL
api_url: <<API_URL>> ##webhook url
  • Replace the placeholder <> with your Slack channel. Leave the # Symbol in
channel: "#<<CHANNEL>>"
  • Run the following from the root folder
docker-compose up -d

Removing the containers

  • Run the following from the root folder
docker-compose down --remove-orphans

URLs to access

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

prometheus-service-discovery's People

Contributors

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