Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyrixx/symfony-observability-demo
Symfony Application to demonstrate how to configure observability layer
https://github.com/lyrixx/symfony-observability-demo
clickhouse demo elasticsearch grafana kibana loki monolog php redash symfony vector
Last synced: 3 months ago
JSON representation
Symfony Application to demonstrate how to configure observability layer
- Host: GitHub
- URL: https://github.com/lyrixx/symfony-observability-demo
- Owner: lyrixx
- Created: 2024-03-03T08:46:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-13T08:28:40.000Z (10 months ago)
- Last Synced: 2024-10-03T10:59:35.543Z (4 months ago)
- Topics: clickhouse, demo, elasticsearch, grafana, kibana, loki, monolog, php, redash, symfony, vector
- Language: PHP
- Homepage:
- Size: 90.8 KB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symfony Demo - Observability - Log
Read the [slides (in french)](https://s.lyrixx.info/log) to know more about this
project and monolog.## Running the application locally
### Requirements
A Docker environment is provided and requires you to have these tools available:
* Docker
* [Castor](https://github.com/jolicode/castor#installation)### Docker environment
The Docker infrastructure provides a web stack with:
- NGINX
- PHP
- PostgreSQL
- Elasticsearch
- Kibana
- ClickHouse
- Loki
- Grafana
- Vector
- Traefik
- A container with some tooling:
- Composer### Domain configuration (first time only)
Before running the application for the first time, ensure your domain names
point the IP of your Docker daemon by editing your `/etc/hosts` file.This IP is probably `127.0.0.1` unless you run Docker in a special VM (like docker-machine for example).
> [!NOTE]
> The router binds port 80 and 443, that's why it will work with `127.0.0.1````
echo '127.0.0.1 observability.test clickhouse.observability.test elasticsearch.observability.test grafana.observability.test kibana.observability.test loki.observability.test redash.observability.test vector.observability.test ' | sudo tee -a /etc/hosts
```### Starting the stack
Launch the stack by running this command:
```bash
castor start
```> [!NOTE]
> the first start of the stack should take a few minutes.The site is now accessible at https://observability.test (you may need to accept
self-signed SSL certificate if you do not have mkcert installed on your computer
- see below).### Other tasks
Checkout `castor` to have the list of available tasks.