Giter VIP home page Giter VIP logo

prometheus's Introduction

A Prometheus docker-compose stack

Here's a quick start to stand-up a Prometheus stack containing Prometheus server, container-exporter, and the Prometheus Dashboard to monitor your Docker infrastructure.

##Pre-requisites Before we get started installing the Prometheus stack. Ensure you install docker-compose on your Docker host machine.

##Installation & Configuration Clone the project locally to your Docker host.

If you would like to change which targets should be monitored or make configuration changes edit the /prom/prometheus.yml file. The targets section. The targets section is where you define which componets(data exporters) should be monitored by Prometheus. The names defined in this file are actually sourced from the service name in the docker-compose file. If you wish to change names of the services change the "container_name" parameter in the docker-compose.yml file.

Once configurations are done let's start it up. From the /prometheus project directory run the following commands:

$ docker-compose up
$ docker-compose start

The Prometheus stack should now be running. To access the different components:

Prometheus: http://<Host IP Address>:9090> for example http://192.168.10.1:9090

Prometheus Dashboard: http://<Host IP Address>:3000 for example http://192.168.10.1:3000

Post Configuration

Now we need to connect the Prometheus Dashboard to the Prometheus installation. Access the Prom Dash as mentioned above.

  • Click the "Server" Menu at the top
  • Click "New Server"
  • Input desired name, Prometheus server IP and port (http://<Host IP Address>:9090> ) and select Prometheus for server type.

PromDash New Server

Configure Dashboards

Let's create our first Dashboard. Head over up to the Dashboard menu. First, create a new directory. Next, create a new Dashboard.

Here's a quick Dashboard I put together as an example.

PromDash Screenshot

ToDo

  • Integrate and configure Alerting.
  • Make a separate stack with just cAdvisor as the metric collection

prometheus's People

Contributors

vegasbrianc avatar

Watchers

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