fluxcd : adding repo example with some apps
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: flux-system
|
||||
labels:
|
||||
app.kubernetes.io/part-of: flux
|
||||
release: prometheus
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- flux-system
|
||||
selector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- helm-controller
|
||||
- source-controller
|
||||
- kustomize-controller
|
||||
- notification-controller
|
||||
- image-automation-controller
|
||||
- image-reflector-controller
|
||||
podMetricsEndpoints:
|
||||
- port: http-prom
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: http-broadcaster
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 30s
|
||||
port: web
|
||||
scheme: http
|
||||
scrapeTimeout: 29s
|
||||
namespaceSelector:
|
||||
any: true
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: "http-broadcaster"
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: infrastructure
|
||||
resources:
|
||||
- flux-podmonitor.yaml
|
||||
- php-fpm-exporters-servicemonitor.yaml
|
||||
- rabbitmq-servicemonitor.yaml
|
||||
- python-metrics-servicemonitor.yaml
|
||||
- php-metrics-servicemonitor.yaml
|
||||
- http-broadcaster-servicemonitor.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: php-fpm-exporters
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 15s
|
||||
port: php-fpm-exporter
|
||||
scheme: http
|
||||
scrapeTimeout: 14s
|
||||
namespaceSelector:
|
||||
any: true
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s.example.com/php-fpm-exporter-scrape: 'true'
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: php-metrics
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 15s
|
||||
port: php-metrics
|
||||
path: /metrics
|
||||
scheme: http
|
||||
scrapeTimeout: 14s
|
||||
namespaceSelector:
|
||||
any: true
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s.example.com/php-metrics-scrape: 'true'
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: python-metrics
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 15s
|
||||
port: metrics
|
||||
path: /metrics
|
||||
scheme: http
|
||||
scrapeTimeout: 14s
|
||||
namespaceSelector:
|
||||
any: true
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s.example.com/python-metrics-scrape: 'true'
|
||||
@@ -0,0 +1,42 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
namespace: rabbitmq-operator
|
||||
spec:
|
||||
endpoints:
|
||||
- port: prometheus
|
||||
scheme: http
|
||||
interval: 15s
|
||||
scrapeTimeout: 14s
|
||||
- port: prometheus-tls
|
||||
scheme: https
|
||||
interval: 15s
|
||||
scrapeTimeout: 14s
|
||||
tlsConfig:
|
||||
insecureSkipVerify: true
|
||||
- port: prometheus
|
||||
scheme: http
|
||||
path: /metrics/detailed
|
||||
params:
|
||||
family:
|
||||
- queue_coarse_metrics
|
||||
- queue_metrics
|
||||
interval: 15s
|
||||
scrapeTimeout: 14s
|
||||
- port: prometheus-tls
|
||||
scheme: https
|
||||
path: /metrics/detailed
|
||||
params:
|
||||
family:
|
||||
- queue_coarse_metrics
|
||||
- queue_metrics
|
||||
interval: 15s
|
||||
scrapeTimeout: 14s
|
||||
tlsConfig:
|
||||
insecureSkipVerify: true
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/component: rabbitmq
|
||||
namespaceSelector:
|
||||
any: true
|
||||
Reference in New Issue
Block a user