Code repository for the talk "Do you know what your Drupal is doing? Observe it" at DrupalCon Prague 2022
- Docker
- DDEV
The stack has been tested on macOS and Linux (maybe it should work on Windows wsl2 too, but I haven't tested it).
git clone git@github.com:lussoluca/drupalcon_prague_2022.git
cd drupalcon_prague_2022
chmod 777 .ddev/o11y/grafana/data
chmod 777 .ddev/o11y/prometheus/data
chmod 777 .ddev/o11y/loki/data
ddev start
ddev composer install
ddev drush -y si demo_umami --account-pass=admin
ddev drush -y pm:enable monolog webprofiler o11y_traces o11y_metrics o11y_metrics_requests drupalcon
https://drupalcon-prague-2022.ddev.site/user/login
username: admin
password: admin
https://drupalcon-prague-2022.ddev.site/admin/config/system/o11y_metrics/plugins-settings
enable collectors:
- Node count
- User count
enable all node types
https://drupalcon-prague-2022.ddev.site/admin/people/permissions#module-o11y_metrics
give permission to anonymous user to "Access site metrics in Prometheus text format."
https://drupalcon-prague-2022.ddev.site:3001
To see the dashboard in action, you can run a load test with k6.
See https://k6.io/docs/getting-started/installation/
cd k6
k6 run script.js