ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
53
services/minecraft/k8s/metrics.yaml
Normal file
53
services/minecraft/k8s/metrics.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
apiVersion: operator.victoriametrics.com/v1beta1
|
||||
kind: VMPodScrape
|
||||
metadata:
|
||||
name: minecraft
|
||||
namespace: victoriametrics
|
||||
labels:
|
||||
observability.quorate.internal/scrape: "true"
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames: [minecraft]
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: minecraft
|
||||
app.kubernetes.io/instance: skies
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
path: /metrics
|
||||
interval: 30s
|
||||
scrapeTimeout: 10s
|
||||
relabelConfigs:
|
||||
- targetLabel: application
|
||||
replacement: minecraft
|
||||
- sourceLabels:
|
||||
- __meta_kubernetes_pod_label_app_kubernetes_io_instance
|
||||
targetLabel: instance
|
||||
- action: labeldrop
|
||||
regex: pod
|
||||
metricRelabelConfigs:
|
||||
- action: labeldrop
|
||||
regex: pod
|
||||
- action: labeldrop
|
||||
regex: (?i)(.*password.*|.*passwd.*|.*secret.*|.*token.*|.*auth.*|.*bearer.*|.*cookie.*|.*dsn.*|.*uri.*|.*url.*|.*cmdline.*|.*command.*|.*args.*|.*env.*)
|
||||
---
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: vmagent-minecraft
|
||||
namespace: victoriametrics
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: vmagent
|
||||
app.kubernetes.io/instance: main
|
||||
egress:
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: minecraft
|
||||
app.kubernetes.io/name: minecraft
|
||||
app.kubernetes.io/instance: skies
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "19565"
|
||||
protocol: TCP
|
||||
Loading…
Reference in a new issue