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

Implement listener for Unixgram sockets #199

Merged
merged 4 commits into from
Apr 23, 2019

Conversation

fffonion
Copy link
Contributor

@fffonion fffonion commented Apr 5, 2019

As requested in #189

@fffonion
Copy link
Contributor Author

fffonion commented Apr 5, 2019

There's a question pending dicussion:

If the unix domain socket is not an abstract socket, that means there'll be a file created in the fs. And normally that file will be removed if we call theSocket.Close() in go code. But there's currently no signal handling in the exporter, that means the defer logic will not be executed properly and the socket file will not be deleted. Would it be good idea to add a signal handler in this PR so we can clean the socket file or does it worth another PR?

As requested in prometheus#189

Signed-off-by: Wangchong Zhou <[email protected]>
@fffonion fffonion force-pushed the feat/unixgram-socket branch from 7cde933 to 05bca84 Compare April 5, 2019 23:45
Copy link
Contributor

@matthiasr matthiasr left a comment

Choose a reason for hiding this comment

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

A minor point, otherwise this looks good. I think if this change triggers the need for a signal handler, then the signal handler should be part of this PR.

@fffonion fffonion force-pushed the feat/unixgram-socket branch from 73aa316 to 3fef8ef Compare April 9, 2019 18:18
@fffonion
Copy link
Contributor Author

fffonion commented Apr 9, 2019

@matthiasr 👍 Will add the signal handler in next commits.

Co-Authored-By: fffonion <[email protected]>
Signed-off-by: Wangchong Zhou <[email protected]>
@fffonion fffonion force-pushed the feat/unixgram-socket branch from 3fef8ef to 9ed6d59 Compare April 9, 2019 18:20
@fffonion fffonion force-pushed the feat/unixgram-socket branch from 898cf44 to 383ee9b Compare April 22, 2019 23:33
Signed-off-by: Wangchong Zhou <[email protected]>
@matthiasr
Copy link
Contributor

Thank you!

@matthiasr matthiasr merged commit e3d6050 into prometheus:master Apr 23, 2019
matthiasr pushed a commit that referenced this pull request Apr 23, 2019
Signed-off-by: Matthias Rampke <[email protected]>
matthiasr pushed a commit that referenced this pull request May 15, 2019
* [CHANGE] Do not run as root in the Docker container by default ([#202](#202))
* [FEATURE] Add metric for count of events by action ([#193](#193))
* [FEATURE] Add metric for count of distinct metric names ([#200](#200))
* [FEATURE] Add UNIX socket listener support ([#199](#199))
* [FEATURE] Accept Datadog [distributions](https://docs.datadoghq.com/graphing/metrics/distributions/) ([#211](#211))
* [ENHANCEMENT] Add a health check to the Docker container ([#182](#182))
* [ENHANCEMENT] Allow inconsistent label sets ([#194](#194))
* [ENHANCEMENT] Speed up sanitization of metric names ([#197](#197))
* [ENHANCEMENT] Enable pprof endpoints ([#205](#205))
* [ENHANCEMENT] DogStatsD tag parsing is faster ([#210](#210))
* [ENHANCEMENT] Cache mapped metrics ([#198](#198))
* [BUGFIX] Fix panic if a mapping resulted in an empty name ([#192](#192))
* [BUGFIX] Ensure that there are always default quantiles if using summaries ([#212](#212))
* [BUGFIX] Prevent ingesting conflicting metric types that would make scraping fail ([#213](#213))

With #192, the count of events rejected because of negative counter increments has moved into the `statsd_exporter_events_error_total` metric, instead of being lumped in with the different kinds of successful events.

Signed-off-by: Matthias Rampke <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants