Skip to content

Commit

Permalink
Created Service and Deployment configuration for Prometheus sink
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Shukla <[email protected]>
  • Loading branch information
kushalShukla-web committed Nov 17, 2024
1 parent f492ff2 commit 3cd3530
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,3 +718,5 @@ data:
- action: replace
source_labels: [__meta_kubernetes_pod_node_name]
target_label: nodeName
remote_write:
- url: "http://prometheus-remote-write:80/sink/prw"
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-sink
namespace: prombench-{{ .PR_NUMBER }}
spec:
replicas: 1
selector:
matchLabels:
app: sink
template:
metadata:
namespace: prombench-{{ .PR_NUMBER }}
labels:
app: sink
spec:
containers:
- name: prom-sink
image: quay.io/bwplotka/sink:latest
imagePullPolicy: Always
ports:
- name: sink-port
containerPort: 9011
nodeSelector:
node-name: nodes-{{ .PR_NUMBER }}
isolation: none
---
apiVersion: v1
kind: Service
metadata:
name: prometheus-remote-write
namespace: prombench-{{ .PR_NUMBER }}
labels:
app: remote-write
spec:
ports:
- name: prometheus
port: 80
targetPort: sink-port
selector:
app: sink

0 comments on commit 3cd3530

Please sign in to comment.