Skip to content

frimik/datadog-conntrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

datadog-conntrack

Quick hack DataDog agent check for conntrack metrics.

Place conntrack.py in /etc/dd-agent/checks.d/ and conntrack.yaml in /etc/dd-agent/conf.d/ and service datadog-agent restart.

The sampling keeps a copy of the current conntrack entries after an event happened. Useful to track down the culprits (who are using all your sockets). If you want to use the sampling, it requires some fixing first.

Requirements

Snapshot method (which saves a tmp file with the conntrack entries) requires the conntrack command available in the path + the datadog agent needs to have sudoers rights to do access conntrack (because command require CAP_NET_ADMIN capabilities).

The simplest way to allow dd-agent to be able to open conntrack is to add dd-agent group in sudoers like bellow :

echo "%dd-agent ALL=(root)NOPASSWD: /usr/sbin/conntrack -L" >> /etc/sudoers

Requirements (Fedora)

dnf install conntrack-tools

Requirements (Ubuntu)

apt-get install conntrack-tools

About

DataDog agent check for Linux Conntrack metrics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages