Note: if this is the first run, see the "first run" section
pnpm run docker:start
- Go to Dashboards and browse available dashboards.
- Login to Grafana as Admin (use credentials from
.env
file). - Choose dashboard from Dashboards or create new one.
- Edit Dashboard and save changes by pressing "Save dashboard" button.
- Export changes. See the "Exporting changes" section.
- Login to Grafana as Admin (use credentials from
.env
file). - Modify/add some of below resources:
- Alert rules - verify results of tests
- Contact points - define where alert notifications can be sent
- Notification policies - define which alerts should be sent to which contact points
- Make sure you saved changes in Grafana UI by pressing "Save" button for each modified resource.
- Save changes made in Grafana UI permanently. See the "Exporting changes" section.
Note: Already created alert resources cannot be modified through UI. You can still adjust them by modifying files in infrastructure/grafana/alerting/
.
Run exporting scripts in the root directory of this repo:
node scripts/export-grafana-resources.mjs
This will update the files in infrastructure
folder. Commit this files to master
branch to rebuild the Grafana image and update the service.
- Node min version:
18.12.1
- PNPM version:
>=8.14.0
. Runnpm install pnpm@8 -g
- Clone repository.
- Go to
cksource-monitoring
main directory and runpnpm install
. - Duplicate
.env.template
file and save it as.env
. Fill out missing env variables.
After project setup, the project can be started. See the Quick start section.