[Elasticsearch] Add metric type to fields - #6698
Conversation
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Can we still use the value provided there even though it's not the right one ? What are the implications making the current value a blocker ? |
Yes, of course. I just could not filter the value by the policy name, that is why I wrote that is still pending validation.
Even if we set the metric type right away, the data stream cannot be migrated to TSDB because the dimensions are not defined. And the dimensions can only be set once we know the value of the policy name. @klacabane |
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
🌐 Coverage report
|
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
That's because the current value can be changing for a given policy, and we need a fixed one ? |
Thank you.
Because it is not the correct value. A dimension needs to uniquely identify each document per timestamp. From the enrich dataset, we know that the name of the executing policy should be unique. However, the value is not the expected name, but a different sentence. If this sentence is unique, then it would work as well for dimension, but it is not the expected one. |
klacabane
left a comment
There was a problem hiding this comment.
LGTM, thanks for the change
Co-authored-by: Richa Talwar <102972658+ritalwar@users.noreply.github.com>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
|
Package elasticsearch - 1.8.1 containing this change is available at https://epr.elastic.co/search?package=elasticsearch |
* Add metric type. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add metric type. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add metric type. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add metric type. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add metric type. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update changelog. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Fix typo. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Fix typo. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Remove metric type on wrong field. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Remove metric type on wrong field. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update packages/elasticsearch/changelog.yml Co-authored-by: Richa Talwar <102972658+ritalwar@users.noreply.github.com> * Resolve conflicts Signed-off-by: constanca-m <constanca.manteigas@elastic.co> --------- Signed-off-by: constanca-m <constanca.manteigas@elastic.co> Co-authored-by: Richa Talwar <102972658+ritalwar@users.noreply.github.com>
What does this PR do?
Adds metric type to the fields of the following data streams:
elasticsearch.ccr.bytes_read: counter or gauge?max_seq_nois a gauge - Correct?Checklist
changelog.ymlfile.Related issues
Relates to #6618