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

StatsD plugin #102

Merged
merged 2 commits into from
Sep 14, 2021
Merged

StatsD plugin #102

merged 2 commits into from
Sep 14, 2021

Conversation

lirsacc
Copy link
Contributor

@lirsacc lirsacc commented Oct 28, 2020

This is a first pass at a Statsd plugin given the Prometheus integration has been unreliable and we're moving to statsd based collections in general.

I think it's mostly there, but I need to check CI and I'd like to add some tests if possible. Also, for clarity I did not want to pull in specifically datadogpy to remain generic and support other formats later if possible, but I coudn't find a good statsd client that supported tags so ended up hacking one around https://github.com/lirsacc/statsd_client_python.

Ideally we'll run both for a bit and compare metrics.

The alternative to this would be to have Datadog or vector scrape the prometheus endpoint which is possible as well but a bit roundabout.

@coveralls
Copy link

coveralls commented Oct 28, 2020

Coverage Status

Coverage decreased (-0.006%) to 99.454% when pulling e860906 on statsd-plugin into 74a05e6 on master.

@lirsacc lirsacc force-pushed the statsd-plugin branch 4 times, most recently from 4892ebd to 233f3b8 Compare October 28, 2020 13:24
@lirsacc lirsacc force-pushed the statsd-plugin branch 2 times, most recently from b9e96e0 to 2053cc1 Compare September 6, 2021 17:51
We want to be able to monitor routemaster with Statsd based collectors
so this PR adds a copy (pretty much grep-replace my way through it) of
the Prometheus plugin but pushing to Statsd instead.

This uses https://pypi.org/project/statsd-python/ so it's not Datadog
specific + support tags (which https://pypi.org/project/python-statsd/
doesn't).

I've also added the basic logger plugin test (not sure the other
Prometheus specific tests are super relevant to copy) as well as docs +
inclusion in build and release.
@lirsacc lirsacc changed the title First pass at a Statsd integration StatsD plugin Sep 6, 2021
@danpalmer danpalmer self-requested a review September 7, 2021 11:04
Copy link
Contributor

@danpalmer danpalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Nice one

@lirsacc lirsacc merged commit 6ad72d7 into master Sep 14, 2021
@lirsacc lirsacc deleted the statsd-plugin branch September 14, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants