monsantoco/kamon-prometheus-demo

By monsantoco

Updated over 9 years ago

Demonstration of kamon-prometheus using Grafana

Image

152

kamon-prometheus

kamon-prometheus is a Kamon module that facilitates exporting metrics to Prometheus. This repository contains a docker image which runs:

  1. A Spray application that provides a number of simple services and generates load on itself. This application is instrumented with Kamon and provides a Prometheus metrics endpoint.
  2. A Prometheus instance that scrapes the service periodically.
  3. A Grafana instance that has a number of preconfigured dashboards to see metrics produced within the application.

Running the demo

There are 3 ports exposed by the image:

  1. Grafana on port 3000,
  2. Prometheus on port 9090, and
  3. The demo application on port 80.

To run the demo, you should run:

docker run -p 3000:3000 -p 9090:9090 -p 8080:80 monsantoco/kamon-prometheus-demo

Once the image is running, browse to port 3000 to see the Grafana dashboard. It can take about 30 seconds or so before data starts showing up. If you want to see the metrics served by the application, you can request the /metrics path on port 8080.

Docker Pull Command

docker pull monsantoco/kamon-prometheus-demo