Skip to content

Latest commit

 

History

History

monitor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Monitoring Stack

Grafana + Loki

install with

docker plugin install  grafana/loki-docker-driver:2.3.0 --alias loki --grant-all-permissions

in 'etc/docker/daemon.json':

{
        "log-driver": "loki",
        "log-opts": {
                "loki-url": "http://127.0.0.1:3100/loki/api/v1/push",
                "loki-retries": "5",
                "loki-batch-size": "100"
        }
}

Nextcloud

  • we're using nextcloud's audit app
  • enable the app & make sure the logfile is linked to stdout:
$ docker exec --user www-data -it <CONTAINER_ID> php ./occ app:enable audit
$ docker exec -it ln -sf /dev/stdout /var/www/html/data/audit.log

deploy stacks

Make a copy of .env (e.g. test.env) and adjust your settings.

deploy the stack (e.g. for test environment):

env ENV=test HOST=test.agora-oegd.de docker stack deploy -c monitor.yml monitor --with-registry-auth