Linux tcp stats#2070
Conversation
- /proc/net/sockstat - /proc/sys/net/ipv4/tcp_mem - /proc/sys/net/ipv4/tcp_max_orphans - /proc/sys/net/ipv4/netfilter/ip_conntrack_count - /proc/sys/net/ipv4/ip_conntrack_max Also from the command : /usr/bin/getconf PAGESIZE Those are critical metrics for high performance applications.
…rotocol - this way you don't need a WebServer running in front of the PHP_FPM process.
|
Thanks a lot @maatthc ! Can you make sure to respect the contributing guidelines please? |
There was a problem hiding this comment.
Call this with self., rather than with Network.
|
@maatthc I think these metrics will be really useful once the check is cleaned up. Thanks for contributing! Here is a summary of the notes I've made, that occur multiple times:
Finally, many of your functions do the same thing, and could be condensed into a single function taking a string @maatthc would you also rebase this to be able to merge with master? There were some changes made to the network check that seem to be conflicting with your changes. |
There was a problem hiding this comment.
Don't use print, if you need to output a string, use self.log.*
|
@maatthc Thank you for your contribution to the datadog agent. These look like great additions to the existing set of metrics we collect. Have you had a chance to review the feedback in code review here? We'd love to include this in an upcoming release. |
|
Hi guys, Cheers |
|
Thanks! No, you should squash your commits into one and then force push it up to your branch. |
|
Okay, |
|
Thanks @maatthc! It looks like there are still merge conflicts with the master branch. Could you please try to resolve these conflicts, and then update this PR with the necessary changes? |
|
|
|
||
| return metrics_by_interface | ||
|
|
||
| def _linux_sockstat_get_conntrack_max(self): |
There was a problem hiding this comment.
This function body repeats itself in two others. Let's condense the three into one, passing in the proc_name, instead.
|
Hey @maatthc :) Just pinging you again to see if you have time to make the changes I pointed out. |
|
Hey @maatthc just pinging again to see if you've had a chance to check this out |
|
@maatthc We're going to move this out to 5.9 since there are still a few pending issues, and a 5.8 release is imminent. |
|
It seems like this PR has been inactive for a while, I think it should be re-opened in https://github.com/DataDog/integrations-core where the active development for the checks is now taking place. Thank you @maatthc! |
|
@maatthc Thank you again for your efforts here. The new metrics are indeed valuable and we would love to merge them. Unfortunately due to the age of the PR there are quite a few conflicts that would need to be addressed in addition the feedback from Remi, John and Jaime. As we've not heard back in sometime I'm going to close out this PR, but I do hope you will open a a new one against our integrations repo at: https://github.com/DataDog/integrations-core If you have any questions, we are happy to discuss here in this PR or on Slack in #integrations. Thank you for being a member of our community and helping to make Datadog awesome. |
Added metrics from Linux stats:
/proc/net/sockstat
/proc/sys/net/ipv4/tcp_mem
/proc/sys/net/ipv4/tcp_max_orphans
/proc/sys/net/ipv4/netfilter/ip_conntrack_count
/proc/sys/net/ipv4/ip_conntrack_max Also from the command : /usr/bin/getconf PAGESIZE Those are critical metrics for high performance applications.