mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
feat(multiplayer): wire allocator metrics discovery
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: allocator
|
||||
namespace: cosmic-clash
|
||||
labels:
|
||||
app.kubernetes.io/name: allocator
|
||||
app.kubernetes.io/component: allocator
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: allocator
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 9091
|
||||
targetPort: metrics
|
||||
@@ -7,6 +7,7 @@ resources:
|
||||
- network-policies.yaml
|
||||
- control-plane-deployment.yaml
|
||||
- control-plane-service.yaml
|
||||
- allocator-service.yaml
|
||||
- fleet.yaml
|
||||
- fleet-autoscaler.yaml
|
||||
- game-server-pdb.yaml
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: cosmic-clash-allocator
|
||||
namespace: cosmic-clash
|
||||
labels:
|
||||
app.kubernetes.io/name: cosmic-clash
|
||||
app.kubernetes.io/component: observability
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: allocator
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- cosmic-clash
|
||||
endpoints:
|
||||
- port: metrics
|
||||
path: /metrics
|
||||
interval: 15s
|
||||
scrapeTimeout: 5s
|
||||
Reference in New Issue
Block a user