-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: prometheus file_sd_config has missing labels #124319
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Comments
nameisbhaskar
added
the
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
label
May 17, 2024
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 20, 2024
few of the labels are missing in prometheus with the change from "gce_sd_configs" to "file_sd_configs". This is because these were extracted from the VM metadata which is not available now. So, the same values are set from roachprod now. Informs: cockroachdb#124319 Epic: none
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 21, 2024
few of the labels are missing in prometheus with the change from "gce_sd_configs" to "file_sd_configs". This is because these were extracted from the VM metadata which is not available now. So, the same values are set from roachprod now. Informs: cockroachdb#124319 Epic: none
craig bot
pushed a commit
that referenced
this issue
May 21, 2024
124409: roachprod: add custom tags for prometheus config r=srosenberg a=nameisbhaskar few of the labels are missing in prometheus with the change from "gce_sd_configs" to "file_sd_configs". This is because these were extracted from the VM metadata which is not available now. So, the same values are set from roachprod now. Informs: #124319 Epic: none Co-authored-by: Bhaskarjyoti Bora <bhaskar.bora@cockroachlabs.com>
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 21, 2024
When a test is run, a new label has to be added to prometheus. To do this, we need to first get the current config, add the new label and update the config. This change does that. Post this change, the label update will be integrated. The change also needs a change in httputil client GET function to support headers being passed. Fixes: cockroachdb#124319 Epic: none
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 22, 2024
When a test is run, a new label has to be added to prometheus. To do this, we need to first get the current config, add the new label and update the config. This change does that. Post this change, the label update will be integrated. The change also needs a change in httputil client GET function to support headers being passed. Fixes: cockroachdb#124319 Epic: none
The issue is fixed with the previous commit as we set the test tags at start and we always restart the clusters before running a new test. |
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 23, 2024
only the clusters in cockroach-ephemeral should be selected for scrapping. So, adding a condition for the same. Fixes: cockroachdb#124319 Epic: none
nameisbhaskar
added a commit
to nameisbhaskar/cockroach
that referenced
this issue
May 23, 2024
only the clusters in cockroach-ephemeral should be selected for scrapping. So, adding a condition for the same. Fixes: cockroachdb#124319 Epic: none
craig bot
pushed a commit
that referenced
this issue
May 28, 2024
124598: roachprod: condition to support cockroach-ephemeral r=herkolategan a=nameisbhaskar only the clusters in cockroach-ephemeral should be selected for scrapping. So, adding a condition for the same. Fixes: #124319 Epic: none Co-authored-by: Bhaskarjyoti Bora <bhaskar.bora@cockroachlabs.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Previously when the gce_sd_configs was used, few labels were read from the gce metadata using the config below:
separator: ;
regex: (.*)
target_label: instance
replacement: ${1}:9100
action: replace
separator: ;
regex: (.*)
target_label: job
replacement: ${1}-sys
action: replace
separator: ;
regex: (.*)
target_label: host
replacement: ${1}
action: replace
separator: ;
regex: (.*)
target_label: cluster
replacement: ${1}
action: replace
separator: ;
regex: (.*)
target_label: instance_tags
replacement: ${1}
action: replace
separator: ;
regex: (.*)
target_label: test_name
replacement: ${1}
action: replace
separator: ;
regex: (.*)
target_label: test_run_id
replacement: ${1}
action: replace
Now, as we are using file_sd_configs, these configs has to be fed to prometheus in a different way.
The approach can be to add the labels directly to the file using the pormhelpers
Jira issue: CRDB-38823
The text was updated successfully, but these errors were encountered: