Make SPM integration test faster by flushing metrics more frequently#7861
Conversation
Metrics Comparison SummaryTotal changes across all snapshots: 0 Detailed changes per snapshotsummary_metrics_snapshot_cassandra📊 Metrics Diff SummaryTotal Changes: 0
summary_metrics_snapshot_cassandra📊 Metrics Diff SummaryTotal Changes: 0
summary_metrics_snapshot_cassandra📊 Metrics Diff SummaryTotal Changes: 0
summary_metrics_snapshot_cassandra📊 Metrics Diff SummaryTotal Changes: 0
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7861 +/- ##
==========================================
+ Coverage 95.55% 95.57% +0.02%
==========================================
Files 316 316
Lines 16726 16726
==========================================
+ Hits 15982 15986 +4
+ Misses 580 577 -3
+ Partials 164 163 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey @yurishkuro sorry, I'm still working on this. Would you mind reviewing after I've gotten all changes to pass? Not sure what the flow of this repo is for having an already open PR, then having to fix it-- should I push to another branch or mark it as review for later? |
a58ab44 to
ecc976d
Compare
ecc976d to
a3dc783
Compare
|
The label check is failing-- Could a maintainer please add a label like |
|
@yurishkuro Pr ready for review again |
a3dc783 to
bce6c91
Compare
364f319 to
0df3bdc
Compare
|
@yurishkuro this PR should be ready to review again. Please lmk if I'm missing anything! |
0df3bdc to
dbc450d
Compare
dbc450d to
3c18749
Compare
Signed-off-by: Don Assamongkol <don.assamongkol@gmail.com>
b048fc5 to
23ba328
Compare
|
Hmm, not sure why check-label bot is failing this-- The changelog label is still applied I believe. But anyways tested it locally so let's see if the build passes here too |
…aegertracing#7861) ## Which problem is this PR solving? - follow-up to jaegertracing#5608 ## Description of the changes - Speed up integration test by changing the interval at which jaeger flushes metrics. - The set up is `microsim` sends spans to jaeger where Jaeger is running an OTLP collector. Previously, the collector was configured to flush metrics out using the default of 1 min, which is why the integration test had to wait. - log with timestamp - Configured prometheus to scrape poll more frequently. - Query metrics API with a step param = 10 seconds so prometheus computes metrics more frequently - remove old test code that expected zero value metric data points. We don't expect this anymore because metrics are getting populated more quickly ## How was this change tested? - Ran locally. Entire test now takes 1 minute instead of 3 (I think?) previously. (can verify here in CI to double check) ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Don Assamongkol <don.assamongkol@gmail.com>
…aegertracing#7861) ## Which problem is this PR solving? - follow-up to jaegertracing#5608 ## Description of the changes - Speed up integration test by changing the interval at which jaeger flushes metrics. - The set up is `microsim` sends spans to jaeger where Jaeger is running an OTLP collector. Previously, the collector was configured to flush metrics out using the default of 1 min, which is why the integration test had to wait. - log with timestamp - Configured prometheus to scrape poll more frequently. - Query metrics API with a step param = 10 seconds so prometheus computes metrics more frequently - remove old test code that expected zero value metric data points. We don't expect this anymore because metrics are getting populated more quickly ## How was this change tested? - Ran locally. Entire test now takes 1 minute instead of 3 (I think?) previously. (can verify here in CI to double check) ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` Signed-off-by: Don Assamongkol <don.assamongkol@gmail.com>
Which problem is this PR solving?
Description of the changes
microsimsends spans to jaeger where Jaeger is running an OTLP collector. Previously, the collector was configured to flush metrics out using the default of 1 min, which is why the integration test had to wait.How was this change tested?
Checklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test