Datadog_DataDog搭建
这里写目录标题
- 1. Datadog
1. Datadog
1.1. Datadog 安装与卸载
1.1.1. 卸载
1.2. 编译 datadog-agent
参考自: https://github.com/DataDog/datadog-agent
1.2.1. 环境准备
1.2.1.1. /etc/profile.d/preload.sh
#!/bin/bash
vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=0 -o gid=0 -o umask=0022
export GOPATH=/mnt/hgfs/share/gopath
export GOBIN=/mnt/hgfs/share/gopath/bin
export PATH=$PATH:/mnt/hgfs/share/go/go/bin:$GOPATH:$GOBIN
1.2.1.2. 安装 pip
apt-get install python3-pip
# 或者
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本
python3 get-pip.py
pip3 --version
1.2.2. 常见问题
1.2.2.1. go get 报错: dial tcp 142.251.43.17:443: i/o timeout
注: go 版本需要支持 mod
自动下载: go env -w GO111MODULE=on
设置环境为国内代理: go env -w GOPROXY=https://goproxy.cn,direct
1.3. Datadog 新特性
https://www.datadoghq.com/blog/dash-2021-new-feature-roundup/#infrastructure-and-network-monitoring
1.4. Datadog 源码
1.4.1. RtLoader
RtLoader is a C++ wrapper around the CPython API with a C89-compatible public API that can be used by foreing languages like Go. In order to provide support for multiple Python versions, RtLoader fully abstracts Python in order to decouple client applications and CPython. Which Python version to use can be decided at runtime, RtLoader will dlopen
the proper backend libraries accordingly.
More: https://github.com/DataDog/datadog-agent/tree/main/rtloader
1.5. Datadog 的路径
- 日志:
/var/log/datadog
- 配置文件:
/etc/datadog-agent
- 程序文件:
/opt/datadog-agent
1.6. Datadog Troubleshooting
1.6.1. status
可以查看当前运行状态: datadog-agent status
。
1.6.2. check
可以检查指定配置状态。如: datadog-agent check python
1.6.3. Unable to load a check from instance of config ‘process_agent’: JMX Check Loader: check is not a jmx check, or unable to determine if it’s so; Python Check Loader: python is not initialized;
这是由于找不到 “.so” 文件造成的。
例如 “python is not initialized” 这个错误,可以用 datadog-agent check python
命令知道是 libdatadog-agent-three.so
文件找不到(我编译的时候指定的是 Python3)。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/201350.html原文链接:https://javaforall.cn
相关文章
- FFmpeg视频播放器开发简介与项目环境搭建(一)
- 微商城分销系统:微商运营管理系统搭建介绍
- 搭建OpenStack多节点的企业私有云平台——基础基础环境搭建
- 云计算服务架构任务池与指令池的搭建和使用,RabbitMQ消息队列
- linux基础:如何使用Apache搭建文件服务器的步骤
- LiteIDE搭建Go语言开发环境
- 搭建Redis服务器步骤详细介绍
- 快讯|Callnovo签约打印机出海品牌 搭建本土母语客服体系
- Linux搭建Hadoop: 快速搭建大数据科学实验室(linux搭建hadoop)
- 使用Linux搭建家庭网络路由器(用linux做路由)
- 使用SQL Server增加工作效率:搭建独立实例(sqlserver加实例)
- 如何搭建简易版Redis(如何实现简化版redis)
- 那Oracle 11g 双节点搭建实践展示(oracle11g双节点)
- Linux上搭建C/C++IDE开发环境