Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote-write to Prombench #787

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally containers inherit the namespace from the Deployment.
Maybe it will work.

labels:
app: sink
spec:
containers:
bboreham marked this conversation as resolved.
Show resolved Hide resolved
- 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