Scrape Immich host metrics directly
This commit is contained in:
1 parent
4fb8b63986
commit
9666a48e35
4 files changed
+18
-68
No files matched your search
@@ -5,9 +5,11 @@ version selected in `bootstrap/prometheus.yaml`. `values.yaml` contains only
|
||||
this cluster's intentional settings. The chart owns Prometheus, Alertmanager,
|
||||
their supporting workloads, and chart-provided monitoring resources.
|
||||
|
||||
The `resources/` directory contains cluster-specific scrape endpoints and
|
||||
alert rules that are not chart defaults. It does not contain application
|
||||
workload templates.
|
||||
The `resources/` directory contains cluster-specific alert rules that are not
|
||||
chart defaults. It does not contain application workload templates. Immich's
|
||||
host metrics endpoints are configured as static scrape targets in `values.yaml`;
|
||||
this avoids depending on legacy Endpoints objects, which this Argo CD instance
|
||||
intentionally excludes from reconciliation.
|
||||
|
||||
Prometheus TSDB uses the existing 50Gi `rook-ceph-block` claim. During adoption,
|
||||
preserve claim
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: external-immich-8082
|
||||
namespace: prometheus
|
||||
labels:
|
||||
app: external-immich-service
|
||||
port: "8082"
|
||||
spec:
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 8082
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: external-immich-8082
|
||||
namespace: prometheus
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 192.168.0.2
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 8082
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: external-immich-8083
|
||||
namespace: prometheus
|
||||
labels:
|
||||
app: external-immich-service
|
||||
port: "8083"
|
||||
spec:
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 8083
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: external-immich-8083
|
||||
namespace: prometheus
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 192.168.0.2
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 8083
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: external-immich-service
|
||||
namespace: prometheus
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: external-immich-service
|
||||
endpoints:
|
||||
- port: metrics
|
||||
path: /metrics
|
||||
interval: 30s
|
||||
@@ -90,3 +90,14 @@ prometheus:
|
||||
serviceMonitorSelector: {}
|
||||
ruleSelectorNilUsesHelmValues: false
|
||||
ruleSelector: {}
|
||||
additionalScrapeConfigs:
|
||||
- job_name: external-immich-8082
|
||||
metrics_path: /metrics
|
||||
static_configs:
|
||||
- targets:
|
||||
- 192.168.0.2:8082
|
||||
- job_name: external-immich-8083
|
||||
metrics_path: /metrics
|
||||
static_configs:
|
||||
- targets:
|
||||
- 192.168.0.2:8083
|
||||
@@ -11,6 +11,8 @@ spec:
|
||||
destinations:
|
||||
- namespace: prometheus
|
||||
server: https://kubernetes.default.svc
|
||||
- namespace: kube-system
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: apiextensions.k8s.io
|
||||
kind: CustomResourceDefinition
|
||||
@@ -25,8 +27,6 @@ spec:
|
||||
namespaceResourceWhitelist:
|
||||
- group: ""
|
||||
kind: ConfigMap
|
||||
- group: ""
|
||||
kind: Endpoints
|
||||
- group: ""
|
||||
kind: Secret
|
||||
- group: ""
|
||||
|
||||
Reference in new issue
Block a user