Skip to content

Optimize gatherer restarts for single metric changes #1200

@sagnik3788

Description

@sagnik3788

Describe the bug
currently when we change anything in the source config like name or custom_tags or add a new , reaper restart all the goroutines running those metrics

To Reproduce
start the pgwatch agent and check logs
update from source
Observe logs. it will show restarting all gatherers...

Expected behavior
for non critical changes like custom_tags , group etc existing goroutines should be undisturbed
full restart for like change in connstr

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions