Skip to content

Commit

Permalink
remote: add toggle for enabling metrics endpoint
Browse files Browse the repository at this point in the history
closes #181
  • Loading branch information
saltydk committed Dec 22, 2023
1 parent d4a7a16 commit 42892d4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/remote/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rclone_first_remote_name: "{{ rclone.remotes[0].remote.split(':')[0] if ':' in r
rclone_first_remote_name_with_path: "{{ rclone.remotes[0].remote if ':' in rclone.remotes[0].remote else rclone.remotes[0].remote + ':Media' }}"

remote_update_rclone: true
rclone_enable_metrics: false

################################
# Rclone VFS Refresh
Expand Down
5 changes: 4 additions & 1 deletion roles/remote/templates/dropbox.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ ExecStart=/usr/bin/rclone mount \
--dropbox-pacer-min-sleep=85ms \
--poll-interval=30s \
--rc \
--rc-no-auth \
--rc-addr=localhost:{{ rclone_remort_port }} \
{% if rclone_enable_metrics %}
--rc-enable-metrics \
{% endif %}
--rc-no-auth \
--syslog \
--timeout=10m \
--umask=002 \
Expand Down
5 changes: 4 additions & 1 deletion roles/remote/templates/google.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ ExecStart=/usr/bin/rclone mount \
--drive-skip-gdocs \
--poll-interval=15s \
--rc \
--rc-no-auth \
--rc-addr=localhost:{{ rclone_remort_port }} \
{% if rclone_enable_metrics %}
--rc-enable-metrics \
{% endif %}
--rc-no-auth \
--syslog \
--timeout=10m \
--umask=002 \
Expand Down
3 changes: 3 additions & 0 deletions roles/remote/templates/sftp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ ExecStart=/usr/bin/rclone mount \
--max-read-ahead=200M \
--rc \
--rc-addr=localhost:{{ rclone_remort_port }} \
{% if rclone_enable_metrics %}
--rc-enable-metrics \
{% endif %}
--rc-no-auth \
{% if rclone_sftp_disable_hashcheck %}
--sftp-disable-hashcheck \
Expand Down

0 comments on commit 42892d4

Please sign in to comment.