Skip to content

lussoluca/drupalcon_prague_2022

Repository files navigation

Code repository for the talk "Do you know what your Drupal is doing? Observe it" at DrupalCon Prague 2022

Requirements

The stack has been tested on macOS and Linux (maybe it should work on Windows wsl2 too, but I haven't tested it).

Install instructions

Clone repo

git clone [email protected]:lussoluca/drupalcon_prague_2022.git
cd drupalcon_prague_2022

Fix folder permission

chmod 777 .ddev/o11y/grafana/data
chmod 777 .ddev/o11y/prometheus/data
chmod 777 .ddev/o11y/loki/data

Start ddev

ddev start

Download dependencies

ddev composer install

Install site

ddev drush -y si demo_umami --account-pass=admin

Enable relevant modules

ddev drush -y pm:enable monolog webprofiler o11y_traces o11y_metrics o11y_metrics_requests drupalcon

Login

https://drupalcon-prague-2022.ddev.site/user/login
username: admin
password: admin

Configure o11y_metrics

https://drupalcon-prague-2022.ddev.site/admin/config/system/o11y_metrics/plugins-settings

enable collectors:

  • Node count
  • User count

enable all node types

Configure permissions

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."

Go to dashboard

https://drupalcon-prague-2022.ddev.site:3001

Load test

To see the dashboard in action, you can run a load test with k6.

Install k6

See https://k6.io/docs/getting-started/installation/

Run load test

cd k6
k6 run script.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages