immich added
This commit is contained in:
1851
cluster/apps/immich/exporter/GrafanaDashboard.yaml
Normal file
1851
cluster/apps/immich/exporter/GrafanaDashboard.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImagePolicy
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
spec:
|
||||
imageRepositoryRef:
|
||||
name: immich-exporter
|
||||
policy:
|
||||
semver:
|
||||
range: '1.*.*'
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImageRepository
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
spec:
|
||||
# https://hub.docker.com/r/friendlyfriend/prometheus-immich-exporter/tags
|
||||
image: friendlyfriend/prometheus-immich-exporter
|
||||
interval: 24h
|
||||
exclusionList:
|
||||
- latest
|
||||
15
cluster/apps/immich/exporter/Service.yaml
Normal file
15
cluster/apps/immich/exporter/Service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
labels:
|
||||
app: immich-exporter
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
selector:
|
||||
app: immich-exporter
|
||||
18
cluster/apps/immich/exporter/ServiceMonitor.yaml
Normal file
18
cluster/apps/immich/exporter/ServiceMonitor.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
labels:
|
||||
app: immich-exporter
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: immich-exporter
|
||||
endpoints:
|
||||
- port: http # port name of service
|
||||
scheme: http
|
||||
interval: 15s
|
||||
metricRelabelings:
|
||||
- action: labeldrop
|
||||
regex: (instance|pod)
|
||||
12
cluster/apps/immich/exporter/configmap.yaml
Normal file
12
cluster/apps/immich/exporter/configmap.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
labels:
|
||||
app: immich-exporter
|
||||
data:
|
||||
# https://immich.app/docs/install/environment-variables/
|
||||
IMMICH_HOST: 'immich-server.immich.svc.cluster.local'
|
||||
IMMICH_PORT: '80'
|
||||
65
cluster/apps/immich/exporter/deployment.yaml
Normal file
65
cluster/apps/immich/exporter/deployment.yaml
Normal file
@@ -0,0 +1,65 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
annotations:
|
||||
reloader.stakater.com/auto: 'true'
|
||||
labels:
|
||||
app: immich-exporter
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: immich-exporter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: immich-exporter
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
containers:
|
||||
- name: immich-exporter
|
||||
# https://github.com/friendlyFriend4000/prometheus-immich-exporter
|
||||
image: friendlyfriend/prometheus-immich-exporter:1.2.3 # {"$imagepolicy": "immich:immich-exporter"}
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
limits:
|
||||
memory: 100Mi
|
||||
requests:
|
||||
memory: 25Mi
|
||||
cpu: 1m
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: 'Europe/Berlin'
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: immich-exporter
|
||||
optional: false
|
||||
- secretRef:
|
||||
name: immich-exporter
|
||||
optional: false
|
||||
securityContext:
|
||||
privileged: false
|
||||
seccompProfile:
|
||||
type: 'RuntimeDefault'
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /metrics
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /metrics
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 15
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
10
cluster/apps/immich/exporter/secret/secret.yaml.dist
Normal file
10
cluster/apps/immich/exporter/secret/secret.yaml.dist
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: immich-exporter
|
||||
namespace: immich
|
||||
labels:
|
||||
app: immich-exporter
|
||||
stringData:
|
||||
IMMICH_API_TOKEN: change_me
|
||||
Reference in New Issue
Block a user