Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeater config?? #586

Open
telderfts opened this issue Jan 11, 2023 · 5 comments
Open

Repeater config?? #586

telderfts opened this issue Jan 11, 2023 · 5 comments

Comments

@telderfts
Copy link

I know that with StatsD you are able to configure a repeater backend so that metrics can be used by 2 different backends. Is it possible to do that with GoStatsD?

@tiedotguy
Copy link
Collaborator

Hi

Sort of - gostatsd can have multiple backends configured, but only 1 of each type. Specifically the backends configuration item is actually a list, not a single value.

@telderfts
Copy link
Author

telderfts commented Jan 12, 2023 via email

@tiedotguy
Copy link
Collaborator

I don't know what the repeater backend in statsd is. If it just sends out the same statsd data it got in, then sort of yes, sort of no. There IS a statsdaemon backend, but it outputs over tcp, not udp. Unfortunately it's not documented (the documentation on older stuff tends to be lacking, unfortunately).

The code that reads the configuration is at https://github.com/atlassian/gostatsd/blob/master/pkg/backends/statsdaemon/statsdaemon.go#L261 though

Also note that it doesn't just proxy forward the data it receives - it still does aggregation, and sends the data out as statsd formatted data, on the normal flush interval.

@telderfts
Copy link
Author

telderfts commented Jan 12, 2023 via email

@aelse
Copy link
Member

aelse commented Jan 12, 2023

You might instead try running gostatsd under 2 configurations (separate servers) and use a UDP repeater to send to both. Statsd clients send to the repeater, which sends to the 2 separate gostatsd instances. That will help you through the transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants