Skip to content

[beatreceiver] replace global path in metricbeat openai module #46987

@leehinman

Description

@leehinman

The metricbeat openai module makes a call to paths.Resolve to determine where to store it's cache.

sm, err := newStateManager(paths.Resolve(paths.Data, path.Join("state", base.Module().Name(), base.Name())))

This should be modified to use:

Paths *paths.Path // per beat paths definition

So that module gets the correct cache on restarts.

Relates #44903

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions