-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CONTINT-3920][fakeintake] Make the store more generic #24063
Conversation
abce287
to
d6c794b
Compare
Test changes on VMUse this command from test-infra-definitions to manually test this PR changes on a VM: inv create-vm --pipeline-id=30848496 --os-family=ubuntu |
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.
Some comments, but that's nice a improvement to be able to use other stores! 🎉
test/fakeintake/server/server.go
Outdated
@@ -87,11 +87,15 @@ func NewServer(options ...func(*Server)) *Server { | |||
|
|||
registry := prometheus.NewRegistry() | |||
|
|||
storeMetrics := fi.store.GetMetrics() |
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.
Is it really useful? Do we have some case where a newly instantiated serverstore already contains metrics?
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.
I think the store must register its metrics and the metrics will depend on the store implementation. For example on SQL we might want SQL metrics
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.
Oh I missed the line fi.store.NbPayloads
in the diff. Looks good to me then, maybe we could just have the naming a bit more explicit to indicate that we actually retrieve the number of payload in the store as a Prometheus metric. Otherwise it can be a bit misleading since the store can be used to store metrics sent from the agent
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.
Do you have any suggestion on a better name ? GetMetrics()
can return any metric we define for the given store. For example on SQL it should return latencies and SQL metrics
/merge |
🚂 MergeQueue This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals. Use |
Regression DetectorRegression Detector ResultsRun ID: 5b2d7b3-66c5-4b16-8b12-f1a928bdb3f8 Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | file_to_blackhole | % cpu utilization | +2.35 | [-4.02, +8.72] |
Fine details of change detection per experiment
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | file_to_blackhole | % cpu utilization | +2.35 | [-4.02, +8.72] |
➖ | process_agent_standard_check | memory utilization | +0.70 | [+0.65, +0.75] |
➖ | file_tree | memory utilization | +0.44 | [+0.33, +0.55] |
➖ | basic_py_check | % cpu utilization | +0.43 | [-2.10, +2.96] |
➖ | otel_to_otel_logs | ingress throughput | +0.24 | [-0.19, +0.67] |
➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | +0.09 | [-2.70, +2.89] |
➖ | trace_agent_msgpack | ingress throughput | +0.02 | [+0.01, +0.03] |
➖ | tcp_dd_logs_filter_exclude | ingress throughput | +0.00 | [-0.03, +0.04] |
➖ | uds_dogstatsd_to_api | ingress throughput | -0.01 | [-0.21, +0.19] |
➖ | trace_agent_json | ingress throughput | -0.02 | [-0.04, +0.00] |
➖ | process_agent_standard_check_with_stats | memory utilization | -0.10 | [-0.13, -0.06] |
➖ | tcp_syslog_to_blackhole | ingress throughput | -0.41 | [-0.50, -0.32] |
➖ | idle | memory utilization | -0.44 | [-0.48, -0.40] |
➖ | process_agent_real_time_mode | memory utilization | -0.50 | [-0.54, -0.45] |
➖ | pycheck_1000_100byte_tags | % cpu utilization | -2.81 | [-7.63, +2.01] |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
🚂 MergeQueue Added to the queue. This build is going to start soon! (estimated merge in less than 28m) Use |
* Replace in memory store by an interface * Make sure we close the store in tests and in the server at the right place * rename as get internal metrics
* Replace in memory store by an interface * Make sure we close the store in tests and in the server at the right place * rename as get internal metrics
What does this PR do?
GetJSONPayloads
is only retrieving raw payloads and marshals them, we also replace this function by something more generic.Motivation
This is a first step towards having a fakeintake with a persistent db
Additional Notes
Possible Drawbacks / Trade-offs
None
Describe how to test/QA your changes