-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Fleet] Add support for meta in fields.yml #82273
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@exekias Can you verify I didn't do any mistakes in the transformation? |
LGTM, thank you! |
@exekias Do you know if we already have an issue in Kibana to add support for this to the Kibana index patterns (or similar)? |
Yes, here #82318 |
Thanks @wylieconlon! I will also sync with @sorantis to see if metrics explorer can leverage this too |
System integrations is already defining these fields: elastic/integrations#402 |
@sorantis mentioned this is required for the new rollups 2.0 and ILM to work properly with our integrations. |
Is it The docs reflect |
You are right @ebeahan! I have updated the description and title to reflect the correct API |
Running into an issue generating the mappings for the - name: system.fsstat
type: group
fields:
- name: count
type: long
metric_type: gauge
description: Number of file systems found.
- name: total_files
type: long
metric_type: gauge
description: Total number of files.
- name: total_size
type: group
format: bytes
unit: byte
metric_type: gauge
fields:
- name: free
type: long
format: bytes
unit: byte
metric_type: gauge
description: |
Total free space.
- name: used
type: long
format: bytes
unit: byte
metric_type: gauge
description: |
Total used space.
- name: total
type: long
format: bytes
unit: byte
metric_type: gauge
description: |
Total space (used plus free). Note specifically this bit: - name: total_size
type: group
format: bytes
unit: byte
metric_type: gauge
fields: This causes an "total_size": {
"properties": {
"free": {
"type": "long",
"meta": {
"metric_type": "gauge",
"unit": "byte"
}
},
"used": {
"type": "long",
"meta": {
"metric_type": "gauge",
"unit": "byte"
}
},
"total": {
"type": "long",
"meta": {
"metric_type": "gauge",
"unit": "byte"
}
}
},
"meta": {
"metric_type": "gauge",
"unit": "byte"
}
} I can work around it by not mapping the Note that the child |
Other than the issue I mentioned in the previous comment, is there any acceptance criteria for this issue besides just updating the |
|
This definitively looks like a bug. I'll follow up. |
I filed as a follow up: elastic/integrations#1091 |
@ph @ruflin @Zacqary the elasticsearch team is going to add new mapping parameters to annotate dimensions and metrics (elastic/elasticsearch#74014). When compared to meta, parameters have the advantage of allowing to implement hard validation, apart of giving metrics the level of first class citizens in ES indexes. There will be a parameter for the metric type, that would overlap with the Another possible approach might be to go on with meta by now, in case Kibana is going to leverage it soon, and migrate to the mapping parameter when ready. There are no plans for units (this is probably only needed for representation), so this information could continue in the Thoughts? |
@jsoriano As this change is already merged I think we should go with the migration approach once the |
++ on moving forward with the metric_type as we already have it in packages and it took some time to get it in. My assumption is that we will be able to have an overlap of the two approaches for some time. |
Sounds good, thanks! |
As discussed here, created issue to add support for the new mappings: #115621 |
In elastic/elasticsearch#61941 a standardised way on how to use
meta
information on fields is documented. Recent support onmeta
was added on the package-spec in elastic/package-spec#42. When installing the template we should also take care of the meta fields.The meta fields are defined in the
fields.yaml
like this:That would translate into a mapping like, see the
meta
key:The text was updated successfully, but these errors were encountered: