https://github.com/bodacious/prometheusrailsdemo
Demo app showing a simple Prometheus setup in Rails
https://github.com/bodacious/prometheusrailsdemo
Last synced: 11 months ago
JSON representation
Demo app showing a simple Prometheus setup in Rails
- Host: GitHub
- URL: https://github.com/bodacious/prometheusrailsdemo
- Owner: Bodacious
- Created: 2022-05-19T17:41:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T16:10:58.000Z (about 4 years ago)
- Last Synced: 2025-02-28T01:47:04.850Z (over 1 year ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Depenendcies
Please ensure you have Prometheus installed locally.
https://prometheus.io/docs/prometheus/latest/installation/
## Installation
Download this repo with git:
git clone https://github.com/Bodacious/PrometheusRailsDemo
And then call `$ bin/setup`.
## Understanding the app
Start the app with `$ rails server`
Head to [localhost:3000](http://localhost:3000) to view the main app page.
This simple page repesents two cars, and their respective current speeds
When you hit "start", the page will begin sending the speed of car A and car B to the backend to be counted by Prometheus in a histogram.
Move the sliders left and right to change the speed of each car. These values will continue to be updated in Prometheus as they change.
Open a dashboard in [Prometheus Graph](https://prometheus.io/docs/visualization/browser/) or [Grafana](https://prometheus.io/docs/visualization/grafana/).