![Screenshot 2024-06-22 at 11 41 05 PM](https://private-user-images.githubusercontent.com/14011425/341989600-80981bcf-11e3-4072-99c7-8b25fb249b18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MjEzNDUsIm5iZiI6MTcyMzkyMTA0NSwicGF0aCI6Ii8xNDAxMTQyNS8zNDE5ODk2MDAtODA5ODFiY2YtMTFlMy00MDcyLTk5YzctOGIyNWZiMjQ5YjE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDE4NTcyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyZDk0MjEwZTRjMjcyMmQ0NTU4MTZkZTZmNTg4YjZkMDcyOGYxOWVhMTBiNGI3MGRmYWU4NjkxZTk2NWU1ZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aawA0Wo-yBOejbSIQQeqI8DiEKwAyTX5DoJDb9GTmU0)
In this talk I give a brief introduction to observability, what it is, why it is important, and how to get started with it. I also discuss the differences between observability and monitoring, and how they can be used together to improve the reliability and performance of your systems.
This talk also has a demo where I show how to use Prometheus, Loki and Grafana to monitor a simple web server.
To run the demo, you will need to have Docker and Docker Compose installed on your machine. You can then run the following command:
docker compose up
This will start a simple web server, Prometheus, Loki and Grafana. You can then access the web server at http://localhost:5050
, Prometheus at http://localhost:9090
, and Grafana at http://localhost:3000
. Grafana is already configured to use Prometheus and Loki as a data source, and has a dashboard that shows relevant data from both sources.
You can use ping_endpoints1.sh and ping_endpoints2.sh to generate traffic to the web server, allowing you to see the metrics in Prometheus and the logs in both Loki and Grafana.