Skip to content

Commit

Permalink
feat(autobrr): enable metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
zebernst committed Feb 3, 2025
1 parent 07c23c3 commit 4d03414
Show file tree
Hide file tree
Showing 3 changed files with 1,033 additions and 3 deletions.
20 changes: 17 additions & 3 deletions kubernetes/apps/downloads/autobrr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: autobrr
name: &app autobrr
spec:
interval: 30m
chart:
Expand Down Expand Up @@ -39,12 +39,15 @@ spec:
app:
image:
repository: ghcr.io/autobrr/autobrr
tag: v1.57.0@sha256:fbc0fea58925c43357a2a43dad543dcda5b354a28a95a28e5d7289d34dc5edb9
tag: v1.58.0@sha256:9b11c36605da242933b93dfc0c572bd17fa05af9aba2ae70deafe4977ba8048b
env:
AUTOBRR__CHECK_FOR_UPDATES: "false"
AUTOBRR__HOST: 0.0.0.0
AUTOBRR__PORT: &port 80
AUTOBRR__LOG_LEVEL: INFO
AUTOBRR__METRICS_ENABLED: "true"
AUTOBRR__METRICS_HOST: 0.0.0.0
AUTOBRR__METRICS_PORT: &promPort 9074
envFrom: *envFrom
probes:
liveness: &probes
Expand Down Expand Up @@ -78,10 +81,12 @@ spec:
seccompProfile: { type: RuntimeDefault }
service:
app:
controller: autobrr
controller: *app
ports:
http:
port: *port
metrics:
port: *promPort
ingress:
app:
annotations:
Expand All @@ -94,6 +99,15 @@ spec:
service:
identifier: app
port: http
serviceMonitor:
app:
serviceName: *app
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
persistence:
tmp:
type: emptyDir
7 changes: 7 additions & 0 deletions kubernetes/apps/downloads/autobrr/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ configMapGenerator:
options:
labels:
loki_rule: "true"
- name: autobrr-grafana-dashboard
files:
- autobrr.json=resources/grafana-dashboard.json
options:
labels:
grafana_dashboard: "true"
grafana_folder: "Media"
generatorOptions:
disableNameSuffixHash: true
Loading

0 comments on commit 4d03414

Please sign in to comment.