Skip to content

Conversation

@strawgate
Copy link
Contributor

@strawgate strawgate commented Oct 23, 2025

This package implements a Docker Stats input using the OpenTelemetry
Collector's dockerstats receiver, following the pattern established
in PR #14315.

Key features:

  • Type: integration with otelcol input (not content package)
  • Configurable collection interval, endpoint, and filtering
  • Comprehensive field definitions for container metrics
  • Full documentation and test policy

Resolves: #15731

This package implements a Docker Stats input using the OpenTelemetry
Collector's dockerstats receiver, following the pattern established
in PR elastic#14315.

Key features:
- Type: integration with otelcol input (not content package)
- Configurable collection interval, endpoint, and filtering
- Comprehensive field definitions for container metrics
- Full documentation and test policy

Resolves: elastic#15731

Co-authored-by: William Easton <strawgate@users.noreply.github.com>
@strawgate strawgate requested a review from a team as a code owner October 23, 2025 19:12
@andrewkroh andrewkroh added New Integration Issue or pull request for creating a new integration package. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. labels Oct 23, 2025
processors:
resourcedetection:
# Modify the list of detectors to match the cloud environment
detectors: [env, system, gcp, ec2, azure]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be configurable as long as it lives here. In the long term this neeeds to not be in each package.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the long term this neeeds to not be in each package.

I guess we could inject this from Fleet, and make it configurable there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually need to be configurable for now?

strawgate and others added 2 commits November 17, 2025 16:18
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
@elasticmachine
Copy link

elasticmachine commented Nov 17, 2025

💔 Build Failed

Failed CI Steps

History

criamico added a commit to elastic/kibana that referenced this pull request Nov 25, 2025
Fixes #243720

## Summary
Integration input health reports otelcol inputs with `receiver id`
instead of input type `otelcol`.

Currently the input health show input name "otelcol" for any receiver,
making it difficult to diagnose which input has issues in case of
multiple inputs. This PR addresses it, showing the receiver id instead
of the generic type.

Note that this change is done only for "otelcol" inputs and not for any
other type of inputs, they'll keep showing the type instead; the link
ref stays the same, it's just the text that has been changed.


### Before
<img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20"
src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91"
/>

### After
<img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36"
src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09"
/>

### Testing
- Locally build this package:
elastic/integrations#15739
- Install it into Fleet with 
 ```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true'
http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme
--data-binary @docker_otel_input-0.2.0.zip
```
- Add it to an agent policy and enroll an agent into that policy
- Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs.


### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
adcoelho pushed a commit to adcoelho/kibana that referenced this pull request Nov 25, 2025
…ic#244013)

Fixes elastic#243720

## Summary
Integration input health reports otelcol inputs with `receiver id`
instead of input type `otelcol`.

Currently the input health show input name "otelcol" for any receiver,
making it difficult to diagnose which input has issues in case of
multiple inputs. This PR addresses it, showing the receiver id instead
of the generic type.

Note that this change is done only for "otelcol" inputs and not for any
other type of inputs, they'll keep showing the type instead; the link
ref stays the same, it's just the text that has been changed.

### Before
<img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20"
src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91"
/>

### After
<img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36"
src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09"
/>

### Testing
- Locally build this package:
elastic/integrations#15739
- Install it into Fleet with
 ```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true'
http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme
--data-binary @docker_otel_input-0.2.0.zip
```
- Add it to an agent policy and enroll an agent into that policy
- Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs.

### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
eokoneyo pushed a commit to eokoneyo/kibana that referenced this pull request Dec 2, 2025
…ic#244013)

Fixes elastic#243720

## Summary
Integration input health reports otelcol inputs with `receiver id`
instead of input type `otelcol`.

Currently the input health show input name "otelcol" for any receiver,
making it difficult to diagnose which input has issues in case of
multiple inputs. This PR addresses it, showing the receiver id instead
of the generic type.

Note that this change is done only for "otelcol" inputs and not for any
other type of inputs, they'll keep showing the type instead; the link
ref stays the same, it's just the text that has been changed.


### Before
<img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20"
src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91"
/>

### After
<img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36"
src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09"
/>

### Testing
- Locally build this package:
elastic/integrations#15739
- Install it into Fleet with 
 ```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true'
http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme
--data-binary @docker_otel_input-0.2.0.zip
```
- Add it to an agent policy and enroll an agent into that policy
- Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs.


### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. New Integration Issue or pull request for creating a new integration package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OTel Docker Stats Receiver] Input Package

5 participants