Skip to content

MON-3500: Enable sending exemplars over RW in UWM #2161

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

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Nov 23, 2023

  • I added CHANGELOG entry for this change.
  • No user facing changes, so no entry in CHANGELOG was needed.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 23, 2023
Copy link
Contributor

openshift-ci bot commented Nov 23, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 23, 2023

@rexagod: This pull request references MON-3500 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set.

In response to this:

  • I added CHANGELOG entry for this change.
  • No user facing changes, so no entry in CHANGELOG was needed.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 23, 2023
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2023
@rexagod rexagod force-pushed the 3500 branch 4 times, most recently from ed24b98 to b6ea201 Compare November 26, 2023 15:35
@rexagod rexagod marked this pull request as ready for review November 26, 2023 15:36
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 26, 2023
@rexagod
Copy link
Member Author

rexagod commented Nov 27, 2023

/retest

// Explicitly warn that we are ignoring the `SendExemplars` configuration for in-cluster scenarios.
for _, rws := range f.config.ClusterMonitoringConfiguration.PrometheusK8sConfig.RemoteWrite {
if rws.SendExemplars != nil && *rws.SendExemplars {
klog.Warningln("Enabling `SendExemplars` in the in-cluster Prometheus configuration has no affect, as it is only supported for UWM configurations.")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we need a warning log. IMHO it would be lost in the existing output + there's no harm being done by having the flag enabled here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree on this, maybe just adding some DEBUG info in case we'd like to check it out.

Copy link
Member Author

Choose a reason for hiding this comment

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

ACK. I thought that even though there's no weight to this being enabled here (since exemplar-storage is not enabled), we might want to have an indication of that behavior. Nonetheless, I agree that it's fairly easy for someone to figure out if any experimental feature is not enabled by looking over at the CLI args supplied to the binary.

I'll drop this. 👍🏼

Copy link
Member Author

@rexagod rexagod Nov 27, 2023

Choose a reason for hiding this comment

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

@danielmellado Ah, it seems I missed your comment. Do you suppose we replace Warningln with a V(x) level call?

@rexagod rexagod force-pushed the 3500 branch 2 times, most recently from 3d0fb69 to 3df6b9d Compare November 27, 2023 12:23
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

It needs an e2e test, at least to check that the feature gets enabled.
Ideally we add exemplars support in https://github.com/rhobs/prometheus-example-app and check that they can be queried via the Prometheus/Thanos APIs.

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

/hold
/cc @bburt-rh
waiting for tests and Brian's review.

@openshift-ci openshift-ci bot requested a review from bburt-rh November 27, 2023 15:32
@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 27, 2023
@rexagod
Copy link
Member Author

rexagod commented Nov 28, 2023

/test e2e-agnostic-operator

@bburt-rh
Copy link
Contributor

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Nov 28, 2023
@simonpasquier
Copy link
Contributor

/hold cancel
/lgtm

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 28, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 28, 2023
Copy link
Contributor

openshift-ci bot commented Nov 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rexagod, simonpasquier

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [rexagod,simonpasquier]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 958ddf0 and 2 for PR HEAD 1f1db96 in total

// configured to store a maximum of 100,000 exemplars in memory.
// Note that this setting only applies to user-defined monitoring. It is not applicable
// to default in-cluster monitoring.
SendExemplars *bool `json:"sendExemplars,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I though we could also have a

type UWMRemoteWriteSpec struct {
        RemoteWriteSpec
        // Enables sending exemplars via remote write. When enabled, Prometheus is
	// configured to store a maximum of 100,000 exemplars in memory.
	SendExemplars *bool `json:"sendExemplars,omitempty"`
}

and then use that in PrometheusRestrictedConfig. That would make it clearer what option can be used where. Though not sure how that affects the API doc generation.

Copy link
Contributor

Choose a reason for hiding this comment

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

just to be sure, this is not a blocker for me and we could go ahead as is.

Copy link
Contributor

openshift-ci bot commented Nov 28, 2023

@rexagod: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-single-node 1f1db96 link false /test e2e-aws-ovn-single-node

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit fbd3e7c into openshift:master Nov 28, 2023
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build cluster-monitoring-operator-container-v4.15.0-202311282232.p0.gfbd3e7c.assembly.stream for distgit cluster-monitoring-operator.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants