Coder Social home page Coder Social logo

fagossa / play-prometheus Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 6.0 2.79 MB

Example of how to monitor a playframework app with prometheus

Home Page: http://blog.xebia.fr/2017/07/28/superviser-mon-application-play-avec-prometheus

License: MIT License

playframework prometheus prometheus-client grafana-prometheus docker-compose

play-prometheus's Introduction

Web application + prometheus + grafana

Example of how to monitor an application using:

  • the prometheus client lib
  • prometheus
  • alermanager
  • grafana
  • cAdvisor

Prerequisites

To run everything you just need docker-compose.

How do I starting playing?

Before running this command be aware that the docker files are quite heavy, so this could take a while

docker-compose up -d

More information

I wrote several implementation using different frameworks. Feel free to used the one that suites you more.

I wrote some blog articles covering prometheus and monitoring:

play-prometheus's People

Contributors

fagossa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

play-prometheus's Issues

Code for the Play application

Great work!

Can I find the source code for the play application somewhere? I am just starting to learn Play and Scala, and I don't have any success in putting together the pieces based on the instructions in the pdf, so I must be missing something.

Running the whole thing via docker-compose works like a charm, but I can't get something similar to work in my own toy Play app.

Any help is highly appreciated.

ERROR: for prometheus Cannot start service prometheus: b'OCI runtime create failed:

ERROR: for prometheus Cannot start service prometheus: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/prometheus/prometheus.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/cb949f93782cfd95247eb6fe8d249e3492cf0848ccbf558e1f50acb52228b5fc/merged\\\" at \\\"/var/lib/docker/overlay2/cb949f93782cfd95247eb6fe8d249e3492cf0848ccbf558e1f50acb52228b5fc/merged/etc/prometheus/prometheus.yml\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'

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.