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 1 commit
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-remote-write:80/sink/prw"
Copy link
Member

Choose a reason for hiding this comment

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

Please resolve the red mark.

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 }}
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
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
Copy link
Member

Choose a reason for hiding this comment

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

I think it might be easier if this were named the same as the Deployment.
That's the pattern used for fake-webserver, prometheus-loadgen-querier.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay.

namespace: prombench-{{ .PR_NUMBER }}
labels:
app: remote-write
Copy link
Member

Choose a reason for hiding this comment

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

This should be consistent with other app labels in this file.
That's the point, to group them all together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i did not knew that.

spec:
ports:
- name: prometheus
Copy link
Member

Choose a reason for hiding this comment

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

This seems potentially confusing; it's not a Prometheus.

port: 80
Copy link
Member

Choose a reason for hiding this comment

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

Why? (It doesn't really matter, but I would have stuck with 9011)

targetPort: sink-port
selector:
app: sink