-
Notifications
You must be signed in to change notification settings - Fork 1
Add Grafana/Loki/Promtail/Prometheus #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This can be configured through an environment variable instead
|
|
||
| # 1) Remove "--logfile" argument from start_seafevents(). This forces seafevents to log to stdout (which is the default it --logfile is not specified). | ||
| # 2) FileUpdateSender should log to stdout | ||
| RUN sed -i 's/--logfile \${TOPDIR}\/logs\/seafevents\.log //g' /opt/seafile/seafile-pro-server-11.0.14/seafile-monitor.sh && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # 1) Remove "--logfile" argument from start_seafevents(). This forces seafevents to log to stdout (which is the default it --logfile is not specified). | ||
| # 2) FileUpdateSender should log to stdout | ||
| RUN sed -i 's/--logfile \${TOPDIR}\/logs\/seafevents\.log //g' /opt/seafile/seafile-pro-server-11.0.14/seafile-monitor.sh && \ | ||
| sed -i 's/run_and_wait(cmd, cwd=SEAHUB_DIR, output=fp)/run_and_wait(cmd, cwd=SEAHUB_DIR)/g' /opt/seafile/seafile-pro-server-11.0.14/pro/python/seafevents/tasks/file_updates_sender.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| restart: unless-stopped | ||
| container_name: prometheus | ||
| # TODO: Is this necessary? | ||
| user: "root:root" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried fixing the directory permissions before starting the container instead of using root:root using
mkdir /opt/seafile-prometheus
chown -R 99:99 /opt/seafile-prometheus/but this did not work.
Docs:
Directory permissions must be fixed before starting the container:
Required environment variables
Data sources must be manually configured
http://loki:3100http://prometheus:9090Examples
container_memory_usage_bytes{name=~"caddy|seafile-server|seafile-memcached|seafile-elasticsearch|mariadb"} / (1024*1024)