-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Document standard metadata entries. #61941
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
Changes from 3 commits
80ba482
3d9c6c6
b6dcdf5
c607d8b
3d0f00f
e8e2142
cd30656
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -29,3 +29,27 @@ than or equal to 50. | |||||
|
|
||||||
| NOTE: Field metadata is updatable by submitting a mapping update. The metadata | ||||||
| of the update will override the metadata of the existing field. | ||||||
|
|
||||||
| Elastic products standardize on the following metadata, which you may use too | ||||||
| in order to get a better out-of-the-box experience with your data. | ||||||
|
|
||||||
| unit:: | ||||||
|
|
||||||
| The unit of the field. Recognizes `"byte"` as well as | ||||||
| <<time-units,time units>>. By default, fields are assumed to not have a unit. | ||||||
| This information may only be specified on numeric fields. | ||||||
|
jpountz marked this conversation as resolved.
Outdated
|
||||||
|
|
||||||
| metric_type:: | ||||||
|
|
||||||
| The type of metric. Recognizes `"gauge"` and `"counter"`. A gauge is a | ||||||
| single-valued measurement that can go up or down over time, such as a | ||||||
| temperature. A counter is a single-valued cumulative counter that only goes | ||||||
| up, such as the number of requests processed by a web server. By default, | ||||||
| fields are assumed to not be a metric. This information may only be | ||||||
| specified on numeric fields. | ||||||
|
jpountz marked this conversation as resolved.
Outdated
|
||||||
|
|
||||||
| ratio:: | ||||||
|
|
||||||
| Whether the field is a ratio. Recognizes `true` and `false` (default). The | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My understanding was that we always use ratios in the data we produce, never percentages (ie. ratio * 100), is this assumption wrong? If we have both, do we need to be able to make the distinction via this metadata so that Kibana would know? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @roncohen @ruflin and I had a small discussion about this yesterday. We see how this can be confusing for users, so we agreed this could be the best approach: Having only WDYT?
jpountz marked this conversation as resolved.
Outdated
|
||||||
| value should not be `true` when a `unit` is also specified. This information | ||||||
| may only be specified on numeric fields. | ||||||
|
jpountz marked this conversation as resolved.
Outdated
|
||||||
Uh oh!
There was an error while loading. Please reload this page.