- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
To get insights about your TCP/UDP connections, you can gather statistics through a Crontab Entry and forward them to your Datadog platform.
To do this, use Linux sockstats located in: /proc/net/sockstat.
Here is an example code snippet to get you started:
https://gist.github.com/sage-oli-wood/70e0931f037ea0aac132
This submits your data to Datadog through an HTTP POST.
A more proper way to do this would be to send metrics and events using DogStatsD. You may adapt your cron job to forward your data locally in UDP to your Agent, find more here.
You retrieve from this:
in use | total established connections | integer (number) |
Orphan | Orphaned tcp connections | |
(not attached to any user file handle) | integer (number) | |
TW | TIME_WAIT connections | ineger (millisec ) |
Alloc | TCP sockets allocated | ( All type for example, ESTABLISH, CLOSE_WAIT, TIME_WAIT, etc) |
mem | total memory for TCP socket | integer (KiloBytes) |
inuse | total established connections | integer |
mem | total memory for UDP socket | integer (KB) |