metrics: Add the first (simple) custom metrics
This commit is contained in:
parent
1e23151021
commit
06c0d6cf44
9 changed files with 60 additions and 0 deletions
13
deploy/ansible/playbooks/templates/c3lf-sys3-cron.service.j2
Normal file
13
deploy/ansible/playbooks/templates/c3lf-sys3-cron.service.j2
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=c3lf sys3 background service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/c3lf-sys3
|
||||
ExecStart=/var/www/c3lf-sys3/venv/bin/python3 /var/www/c3lf-sys3/repo/core/manage.py update_metrics
|
||||
Environment=DJANGO_SETTINGS_MODULE=core.settings
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Run Nextcloud cron.php every 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnCalendar=minutely
|
||||
Unit=c3lf-sys3-cron.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue