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 latency metrics to mode2 #88011

Merged
merged 16 commits into from
May 28, 2024
Merged

Add latency metrics to mode2 #88011

merged 16 commits into from
May 28, 2024

Conversation

leonorfmartins
Copy link
Contributor

@leonorfmartins leonorfmartins commented May 17, 2024

What is this feature?

Add latency metrics in mode2: in this mode, an error is returned if either of the stores fail.
To be merged after #87739

Why do we need this feature?

[Add a description of the problem the feature is trying to solve.]

Who is this feature for?

[Add information on what kind of user the feature is for.]

Which issue(s) does this PR fix?:

Relates to https://github.com/grafana/search-and-storage-team/issues/29

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.1.x milestone May 17, 2024
@leonorfmartins leonorfmartins added the no-changelog Skip including change in changelog/release notes label May 17, 2024
@leonorfmartins leonorfmartins marked this pull request as ready for review May 17, 2024 10:52
@leonorfmartins leonorfmartins requested a review from a team as a code owner May 17, 2024 10:52
@diegommm
Copy link
Contributor

I would add the same observations about context.Context and (time.Time).UTC() usage as in #87739

@leonorfmartins leonorfmartins force-pushed the dualwriter/mode2_metric branch 2 times, most recently from 50b2875 to 5bd7a84 Compare May 22, 2024 12:56
@leonorfmartins leonorfmartins merged commit ef07dfa into main May 28, 2024
12 checks passed
@leonorfmartins leonorfmartins deleted the dualwriter/mode2_metric branch May 28, 2024 14:15
miguelmolina95 pushed a commit to miguelmolina95/grafana that referenced this pull request Jun 3, 2024
* Also call storage on mode1. Add metrics

* Update comment

* Don't use compare function for now

* Remove very important space

* Improve code readability on modes 1 and 2

* Fix tests

* Return error from legacy write

* Renume useless defer

* Start adding logging for mode2

* Retrurn errors is storage read fails

* Finish adding latency metrics to mode2

* Emit kind to metrics instead

* Fix var name

* Return if legacy delete list fails

* Unify latency calls

* Fix get function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants