infrastructure-agent icon indicating copy to clipboard operation
infrastructure-agent copied to clipboard

Enhanced logging of Flex scripts

Open LLHogia opened this issue 10 months ago • 2 comments

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

LLHogia avatar Jan 30 '25 16:01 LLHogia

https://new-relic.atlassian.net/browse/NR-364125

I am sorry - this was not meant to be closed. It happened by mistake. It has now been re-opened and shall become a future consideration, when our team becomes free from our current commitments.

Again, I am sorry for the confusion around closing this without any comment nor any progress.

nr-ksteinbach avatar Feb 05 '25 22:02 nr-ksteinbach