feat(flux): serviceMonitor

This commit is contained in:
JJGadgets
2024-10-04 11:30:26 +08:00
parent e255a85385
commit 3296bd3681
3 changed files with 78 additions and 11075 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,14 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: &app flux-system
namespace: *app
labels:
flux: localhost
spec:
selector:
matchLabels:
flux: localhost
endpoints:
- port: metrics

View File

@@ -0,0 +1,64 @@
---
apiVersion: v1
kind: Service
metadata:
name: &app source-controller-metrics
namespace: flux-system
labels: &labels
app: source-controller
flux: localhost
spec:
type: ClusterIP
selector: *labels
ports:
- name: metrics
port: 9791
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: &app kustomize-controller-metrics
namespace: flux-system
labels: &labels
app: kustomize-controller
flux: localhost
spec:
type: ClusterIP
selector: *labels
ports:
- name: metrics
port: 9793
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: &app helm-controller-metrics
namespace: flux-system
labels: &labels
app: helm-controller
flux: localhost
spec:
type: ClusterIP
selector: *labels
ports:
- name: metrics
port: 9795
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: &app notification-controller-metrics
namespace: flux-system
labels: &labels
app: notification-controller
flux: localhost
spec:
type: ClusterIP
selector: *labels
ports:
- name: metrics
port: 9798
protocol: TCP