Skip to content

Commit

Permalink
feat: Add alias for metrics endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Nov 20, 2023
1 parent 547f501 commit bd3060d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/matomo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ data:
deny all;
return 403; # replace with 404 to not show these directories exist
}
## alias for prometheus metrics
location /metrics {
rewrite ^ /index.php?module=API&method=QueueMonitoring.getQueueMetrics&format=original last;
}
location ~ /\.ht {
deny all;
return 403;
Expand Down
2 changes: 1 addition & 1 deletion charts/matomo/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
endpoints:
- port: http
path: "/index.php?module=API&method=QueueMonitoring.getQueueMetrics&format=original"
path: /metrics
interval: 15s
scrapeTimeout: 10s
namespaceSelector:
Expand Down

0 comments on commit bd3060d

Please sign in to comment.