Skip to content

Enhanced logging of Flex scripts #2013

Open
@LLHogia

Description

Description

I would like to you to add some more logging here:

{
    "context": {
        "component": "integrations.runner.Runner",
        "integration_name": "nri-flex",
        "runner_uid": "fcfea3574a"
    },
    "level": "info",
    "msg": "Integration health check finished with success",
    "timestamp": "2025-01-30T16:41:28+01:00"
}

Example of what I want to have:

{
    "context": {
        "component": "integrations.runner.Runner",
        "integration_name": "nri-flex",
	"integration_file_name": "Get-PerformanceCounters-ClusterRolesRemote.yml",
        "runner_uid": "fcfea3574a"
    },
    "level": "info",
    "msg": "Integration health check finished with success",
    "timestamp": "2025-01-30T16:41:28+01:00"
}

Since we're forwarding the logs from the agent to New Relic, it should be a lot easier to see which script is affected by info, error, warning messages:

Image
I would like to have an extra attribute to display as a column in the Log table.

Acceptance Criteria

Add YML file_name / integration_filen_name / flex_file in the log as a separate attribute.

Dependencies

Do any other teams or parts of the New Relic product need to be considered? No
Some common areas: UI, collector, documentation Log?

Estimates

S = 1-3 days (most probably just a 1-2 hours for implementation)

For Maintainers Only or Hero Triaging this bug

Suggested Priority (P1,P2,P3,P4,P5): P3
Suggested T-Shirt size (S, M, L, XL, Unknown): Unknown

Metadata

Assignees

No one assigned

    Labels

    feature requestCategorizes issue or PR as related to a new feature or enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions