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

Metricbeat module for Uwsgi #4746

Closed
lagrianitis opened this issue Jul 25, 2017 · 7 comments
Closed

Metricbeat module for Uwsgi #4746

lagrianitis opened this issue Jul 25, 2017 · 7 comments
Labels
enhancement Metricbeat Metricbeat module Team:Integrations Label for the Integrations team

Comments

@lagrianitis
Copy link

We are using Elastic stack 5.5.0
In our ecosystem we have an API fully build in python with UWSGi processes.
I would be nice to build a metricbeat module for UWSGi reading from statsd.

@tsg
Copy link
Contributor

tsg commented Jul 25, 2017

Can you explain a bit more what you mean by "UWSGi reading from statsd"? You want UWSGI to publish using the statsd protocol?

Btw, I see that uwsgi supports the graphite protocol for which we add support in #4734. Would that fill the need?

@lagrianitis
Copy link
Author

Hello @tsg and thanks for your reply.
Let me elaborate a bit. The way we are currently retrieving uwsgi metrics is by using the stats server: http://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html
which is part of UWSGi. Of course I am open in other suggestions as long as the results are the same. I believe both should be supported for more flexibility though

@tsg
Copy link
Contributor

tsg commented Jul 26, 2017

@lagrianitis From what I understand the StatsServer opens an HTTP server that offers the metrics over JSON, right? This seems like a perfect match for the http module which you can find in 6.0.0-alpha2.

@lagrianitis
Copy link
Author

lagrianitis commented Jul 26, 2017

Hello @tsg, It actually opens a socket. We run a uwsgi application with stats server like this:

uwsgi --http :9090 --wsgi-file foobar.py --stats /tmp/foobar-stats.sock

We currently have some monitoring with Zabbix by reading the socket file (which is exposing json information indeed) withuwsgi --connect-and-read /tmp/foobar-stats.sock

I was actually checking https://github.com/mrkschan/uwsgibeat which is very similar of what I want to achieve but without having to install another agent in the server, as I'm already using metricbeat's system and nginx modules.

@tsg
Copy link
Contributor

tsg commented Jul 26, 2017

I see, we'd be welcoming a uwsgi module in Metricbeat, if you or @mrkschan want to contirbute the equivalent of the uwsgibeat :)

I'll also add it to an internal wish list.

@lagrianitis
Copy link
Author

@tsg Thanks alot. I'd love to contribute but I am an absolutely amateur with golang. I've created an issue in @mrkschan repo though.
I am more than happy to help with testing though

@ruflin ruflin added the module label Feb 26, 2018
@ruflin ruflin added the Team:Integrations Label for the Integrations team label Nov 21, 2018
@fearful-symmetry
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat module Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

4 participants