-
Notifications
You must be signed in to change notification settings - Fork 69
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normally containers inherit the namespace from the Deployment. |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay. |
||
namespace: prombench-{{ .PR_NUMBER }} | ||
labels: | ||
app: remote-write | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be consistent with other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i did not knew that. |
||
spec: | ||
ports: | ||
- name: prometheus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems potentially confusing; it's not a Prometheus. |
||
port: 80 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
There was a problem hiding this comment.
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.