Skip to content

[beats receivers] The diagnostics state.yaml should indicate which runtime is used for each component #10136

@cmacknz

Description

@cmacknz

When enabling beats receivers for monitoring and looking at diagnostics, there is no way to tell from the state.yaml which components and inputs are being run in the OpenTelemetry collector.

We should include the runtime for each component explicitly to make this easier to see.

This in pre-config.yaml

agent:
    download:
        sourceURI: https://artifacts.elastic.co/downloads/
    features: null
    monitoring:
        _runtime_experimental: otel
        enabled: true
        logs: true
        metrics: true

results in the following in state.yaml for the filestream-monitoring component

    - id: filestream-monitoring
      state:
        component_idx: 0
        features_idx: 0
        message: HEALTHY
        pid: 0
        state: 2
        units:
            input-filestream-monitoring-filestream-monitoring-agent:
                message: Healthy
                payload:
                    streams:
                        filestream-monitoring-agent:
                            error: ""
                            status: HEALTHY
                state: 2
            output-filestream-monitoring:
                message: Healthy
                state: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions