-
Notifications
You must be signed in to change notification settings - Fork 315
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
Preserve pre-existing rally-metrics
index templates by default
#1912
Conversation
63a06d5
to
5a38d2e
Compare
Could we get an update to the docs done too, to explain this feature? Obviously we want to have it tested too before we merge |
I did tested and it works as expected in all cases except one: one the |
6e1cffa
to
2ed976a
Compare
9ed48b4
to
c0c373a
Compare
1fa76d8
to
d1e7004
Compare
In addition to documentation I would also try adding new modules in here to enable full scope of mypy checks: Lines 200 to 206 in 2ef33eb
Context: Until #1798, so recently on Rally timescale, we had no annotations. They were introduced very surgically to reduce the scope. Then in #1859 we introduced mypy overrides that restore full set of checks for selected modules - either new ones, or the ones we are revisiting. As we're planning to broaden annotations it would be best if all new modules were added there. Ultimately the overrides should be removed. |
CI failure will be addressed by elastic/rally-tracks#748. |
95de3dd
to
fef436a
Compare
13a3fa4
to
b720f0a
Compare
I am still processing pending comments. I am going to split this PR. |
5ea8073
to
7eb55d2
Compare
79b3907
to
92b190d
Compare
@fressi-elastic Many thanks for the split. As mentioned earlier, I'm happy with how this works for
The rationale is the |
I already started working in a follow-up PR address @gbanasiak comments. Thank you for addressing this point I didn't catch earlier. |
92b190d
to
954e5ff
Compare
f323bd6
to
fe2d1bb
Compare
rally-metrics
index templates by default
It handles issue elastic#1900: Rally should not overwrite pre existing templates by default When opening an EsMetricsStore, it creates the index template if any of following is true: - the index template doesn't exist - `reporting/datastore.overwrite_existing_templates` option is true and there are differences between existing and requested template. It will preserve existing template on all the other cases. It logs a warning when an existing index template is being replaced. It logs index template differences between the existing one (if any) and configured one.
fe2d1bb
to
378552c
Compare
It handles issue #1900: Rally should not overwrite pre existing templates by default
When opening an EsMetricsStore, it creates the index template if any of following is true:
reporting/datastore.overwrite_existing_templates
option is true and there are differencesbetween existing and requested template.
It will preserve existing template on all the other cases.
It logs a warning when an existing index template is being replaced.
It logs index template differences between the existing one (if any) and configured one.