-
Notifications
You must be signed in to change notification settings - Fork 422
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
[Docker] Add dimensions to metrics data streams, except for events #6390
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>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
🌐 Coverage report
|
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Hey @gizas , I added |
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to align with #5193 (comment) I think that host.name
should be added. I see that cloud.* are not defined in docker package, so lets skip it.
@@ -27,6 +27,7 @@ | |||
Total number of existing containers. | |||
- name: id | |||
type: keyword | |||
dimension: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this data_stream does not contain container.id
or it is just missing in fields
definition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, container.id
has no value for this data stream
@@ -2,6 +2,7 @@ | |||
name: ecs.version | |||
- external: ecs | |||
name: service.address | |||
dimension: true | |||
- external: ecs | |||
name: service.type | |||
- external: ecs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
container.id
for image
data_stream is it not set as a dimension on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @tetianakravchenko The field doesn't hold any value for that data stream, that's why docker.image.id.current
is a dimension.
I think |
from my understanding there should be either the ip address or the socket, which might not be unique enough, if we run in different cloud providers/different cloud accounts instance with the docker service running, isn't it? in the sample file - integrations/packages/docker/data_stream/info/sample_event.json Lines 24 to 25 in c8e5b36
|
You're right. In my example they were different, but now that I think of it, they were only different because I made them be. I will fix it. |
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Package docker - 2.5.1 containing this change is available at https://epr.elastic.co/search?package=docker |
…6390) * Add dimensions to container. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add dimensions to cpu. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add dimensions to diskio and healthcheck. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add dimensions to info, memory and network. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add dimensions to image data stream. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update version. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update changelog. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update version. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add agent.id as dimension Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update readme. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Add host.name as dimension. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> * Update dimensions. Signed-off-by: constanca-m <constanca.manteigas@elastic.co> --------- Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
What does this PR do?
Add dimensions to metrics data streams, except for events.
Details
For all data streams, there exists these set of dimensions:
In case it is running on cloud.More info on this can be found in #5193 (comment).
The dimensions set for each data stream are
container.id
andservice.address
, since the ID is unique per Docker daemon. Some data streams did not hold value forcontainer.id
, so a similar field was selected (see below).Container: No change in the number of documents with TSDB disabled v enabled
CPU: No change in the number of documents with TSDB disabled v enabled
Diskio: No change in the number of documents with TSDB disabled v enabled
Event: Does not have any metrics
Healthcheck: No change in the number of documents with TSDB disabled v enabled
Image: No change in the number of documents with TSDB disabled v enabled. Instead of
container.id
, we usedocker.image.id.current
.Also changed:
To:
Info:
docker.info.id
instead ofcontainer.id
is used (last one holds no value).Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally