Skip to content

Commit

Permalink
feat: Add Matomo plugin to monitor tracking queue
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Nov 20, 2023
1 parent ed410b3 commit 4e17682
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/matomo/scripts/plugin-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ EOF
unzip -q -o "plugins-$PLUGIN_NAME" -d /custom-plugins/
done

echo "Installing Matomo queue monitoring plugin..."
curl -f -sSL https://github.com/MakairaIO/matomo-queue-monitoring/archive/refs/heads/stable.tar.gz > /tmp/plugins-matomo-queue-monitoring.tar.gz
mkdir -p /custom-plugins/QueueMonitoring
tar --strip-components=1 -xzf /tmp/plugins-matomo-queue-monitoring.tar.gz -C /custom-plugins/QueueMonitoring

echo "Adjusting permissions..."

chown -R 82:82 /custom-plugins
Expand Down
3 changes: 3 additions & 0 deletions charts/matomo/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ volumeMounts for custom components
mountPath: /var/www/html/plugins/{{ regexSplit ":" . -1 | first }}
subPath: {{ regexSplit ":" . -1 | first }}
{{- end }}
- name: custom-plugins
mountPath: /var/www/html/plugins/QueueMonitoring
subPath: QueueMonitoring
{{- end }}
{{- if .Values.geoip.enabled }}
{{- range .Values.geoip.databases }}
Expand Down

0 comments on commit 4e17682

Please sign in to comment.