metrics: Make metrics actually usable
With this commit, we should get stats for the item count per event per returned-state.
This commit is contained in:
parent
06c0d6cf44
commit
2886d887f5
8 changed files with 33 additions and 56 deletions
|
@ -311,16 +311,6 @@
|
|||
notify:
|
||||
- restart c3lf-sys3
|
||||
|
||||
- name: add c3lf-sys3-cron service
|
||||
template:
|
||||
src: templates/c3lf-sys3-cron.service.j2
|
||||
dest: /etc/systemd/system/c3lf-sys3-cron.service
|
||||
|
||||
- name: add c3lf-sys3-cron timer
|
||||
template:
|
||||
src: templates/c3lf-sys3-cron.timer.j2
|
||||
dest: /etc/systemd/system/c3lf-sys3-cron.timer
|
||||
|
||||
- name: reload systemd
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
@ -331,12 +321,6 @@
|
|||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: start c3lf-sys3 timer
|
||||
service:
|
||||
name: c3lf-sys3-cron.timer
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: add postfix to www-data group
|
||||
user:
|
||||
name: postfix
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
[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
|
|
@ -1,9 +0,0 @@
|
|||
[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