Skip to content

xlevel/Prometheus-Demo

Repository files navigation

Prometheus-Demo

A quick start example of using Prometheus for web service monitoring using Docker and Docker Compose.

Getting Started

  1. Install Docker onto the target machine.
  2. Clone the GitHub repo.
  3. Navigate into the directory.
  4. Run docker build -t test/webservice:latest . to build the test web service.
  5. Run docker-compose up to bring up the application.
  6. Navigate to http://localhost/ in a web browser and you should see the 'Hello' returned.
  7. Using a tool such as Postman, do a PUT to http://localhost/orders/ with a body of {"orderId": "1234567","orderValue": "123.45"}.
  8. Do a GET to http://localhost/1234567 and the original data should be displayed.

License

MIT License

Acknowledgments

The work is based on Kai Hendry's Pingprom project.

About

A quick start demo of web site/service monitoring using Prometheus.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published