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

roachprod: use yaml for creating the cluster config #124322

Merged
merged 1 commit into from
May 20, 2024

Conversation

nameisbhaskar
Copy link
Contributor

currently a template is used to generate the yaml for the prometheus cluster config. this is error-prone and adding new parameters also becomes risky.
with this change, we are using go yaml to generate the yaml

Fixes: #124320
Epic: none

@nameisbhaskar nameisbhaskar requested a review from a team as a code owner May 17, 2024 03:23
@nameisbhaskar nameisbhaskar requested review from herkolategan and vidit-bhat and removed request for a team May 17, 2024 03:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nameisbhaskar nameisbhaskar force-pushed the user/bhaskar/go-yaml-prom branch 3 times, most recently from 78e0f98 to c549e7e Compare May 17, 2024 13:56
Copy link
Contributor

@DarrylWong DarrylWong left a comment

Choose a reason for hiding this comment

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

Two quick comments on the test case, but the actual change lgtm.

pkg/roachprod/promhelperclient/client_test.go Outdated Show resolved Hide resolved
pkg/roachprod/promhelperclient/client_test.go Outdated Show resolved Hide resolved
@nameisbhaskar nameisbhaskar force-pushed the user/bhaskar/go-yaml-prom branch 2 times, most recently from b6d4dc8 to 8bbc5fd Compare May 18, 2024 10:50
@nameisbhaskar nameisbhaskar force-pushed the user/bhaskar/go-yaml-prom branch 4 times, most recently from f40a1cc to e419a44 Compare May 20, 2024 05:19
Copy link
Collaborator

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

Two nits, LGTM!

pkg/roachprod/promhelperclient/client.go Outdated Show resolved Hide resolved
pkg/roachprod/promhelperclient/client_test.go Outdated Show resolved Hide resolved
currently a template is used to generate the yaml for the
prometheus cluster config. this is error-prone and adding new
parameters also becomes risky.
with this change, we are using go yaml to generate the yaml

Fixes: cockroachdb#124320
Epic: none
@nameisbhaskar
Copy link
Contributor Author

Thanks @DarrylWong @renatolabs

@nameisbhaskar
Copy link
Contributor Author

bors r=@renatolabs @DarrylWong

@craig craig bot merged commit e4d7442 into cockroachdb:master May 20, 2024
21 of 22 checks passed
@nameisbhaskar nameisbhaskar deleted the user/bhaskar/go-yaml-prom branch May 20, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roachprod: use go yaml to create the prometheus yaml
4 participants