Skip to content

Commit

Permalink
Add remote-write to Prombench (#787)
Browse files Browse the repository at this point in the history
* Created  Service and Deployment configuration for Prometheus sink
* 1. Added cpu and memory usage to remote-write.
2. make clusterIp headless.

Signed-off-by: Kushal Shukla <[email protected]>
  • Loading branch information
kushalShukla-web authored Nov 27, 2024
1 parent 0026dc3 commit aca1803
Show file tree
Hide file tree
Showing 2 changed files with 49 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-sink:9011/sink/prw"
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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
resources:
requests:
cpu: "560m"
memory: "250Mi"
imagePullPolicy: Always
ports:
- name: sink-port
containerPort: 9011
nodeSelector:
node-name: nodes-{{ .PR_NUMBER }}
isolation: none
---
apiVersion: v1
kind: Service
metadata:
name: prometheus-sink
namespace: prombench-{{ .PR_NUMBER }}
labels:
app: sink
spec:
type: ClusterIP
clusterIP: None
ports:
- name: sink-port
port: 9011
targetPort: sink-port
selector:
app: sink

0 comments on commit aca1803

Please sign in to comment.