AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[datadog](server)

Martin Hope
Prashant Gupta
Asked: 2020-10-29 07:36:27 +0800 CST

是否可以使用 terraform 在 AWS EKS 集群上部署 Datadog 代理

  • 1

我希望了解是否有人可以指导我如何在我的 AWS EKS 集群上安装 Datadog 代理作为 pod。我可以使用 kubectl 命令完成我的要求。

但是在这里,我正在寻找一种可能的解决方案来从 Terraform 脚本中执行相同的工作,或者是否有人可以建议任何其他自动化方式来在我的 eks 集群上部署 Datadog 代理。

cluster terraform amazon-eks datadog
  • 1 个回答
  • 1397 Views
Martin Hope
Antwane
Asked: 2017-02-02 13:09:32 +0800 CST

为 gunicorn 指标配置 datadog-agent

  • 1

我的 Debian 8 服务器上安装了 datadog-agent。它已经配置好并且可以很好地报告有关 postgres、nginx、系统等的指标。

我想监控我的 gunicorn 守护进程(我在这台服务器上有 2 个 Django 网站)。据我了解,datadog-agent 已经集成了一个 statsd 服务器,所以我不必安装一个:

# ps ax | grep datadog
18816 ?        Ss     0:00 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/bin/supervisord -c /etc/dd-agent/supervisor.conf
18822 ?        Sl     0:01 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/dogstatsd.py --use-local-forwarder
18824 ?        S      0:01 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/ddagent.py
18825 ?        S      0:01 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/agent.py foreground --use-local-forwarder

我认为“dogstatsd.py”是 statsd 服务器,但也许我错了?

然后,我修改了我的 gunicorn 启动脚本以集成--name选项来为我的进程设置名称并--statsd-host指示将指标发送到何处。

# ps ax | grep gunicorn
18588 ?        Ss     0:00 /var/projects/my_project/venv/bin/python3 /var/projects/my_project/venv/bin/gunicorn --name my_project --statsd-host=localhost:8125 --workers 2 --bind unix:/var/tmp/my_project.sock core.wsgi:application
18630 ?        S      0:00 /var/projects/my_project/venv/bin/python3 /var/projects/my_project/venv/bin/gunicorn --name my_project --statsd-host=localhost:8125 --workers 2 --bind unix:/var/tmp/my_project.sock core.wsgi:application
18632 ?        S      0:00 /var/projects/my_project/venv/bin/python3 /var/projects/my_project/venv/bin/gunicorn --name my_project --statsd-host=localhost:8125 --workers 2 --bind unix:/var/tmp/my_project.sock core.wsgi:application

现在我从 /etc/dd-agent/conf.d/ 中的示例创建 gunicorn.yaml 如下

# NB: This check requires the python environment on which gunicorn runs to
# have the `setproctitle` module installed (https://pypi.python.org/pypi/setproctitle/)

init_config:

instances:
  # The name of the gunicorn process. For the following gunicorn server ...
  #
  #    gunicorn --name my_web_app my_web_app_config.ini
  #
  #  ... we'd use the name `my_web_app`.
  #
  - proc_name: my_project

重新启动代理后,我等待几秒钟并检查其状态:

# sudo service datadog-agent info
# [...]
  Checks
  ======

    gunicorn
    --------
      - instance #0 [ERROR]: 'Found no master process with name: gunicorn: master [my_project]'
      - Collected 0 metrics, 0 events & 1 service check
      - Dependencies:
          - psutil: 4.4.1

我找不到我无法配置它的地方。有人可以帮助我吗?

linux web-server gunicorn wsgi datadog
  • 2 个回答
  • 1344 Views
Martin Hope
Jeff Gebhardt - MSFT
Asked: 2017-02-01 10:16:55 +0800 CST

从 F5 负载均衡器中提取 HTTP 代码

  • 1

我的环境是 4 台运行 Nginx 的 Ubuntu 14.04 服务器,位于 F5 负载均衡器后面。他们正在向 Datadog 发送指标,并通过 SNMP 从 F5 中提取指标以发送到 Datadog。

开发团队需要能够监控 HTTP 代码。我无法从服务器端的 Nginx 中提取它们,因为只有 Nginx Plus 才有可能。我曾考虑通过阅读访问日志和其他内容来构建一些内部解决方案,但我真的不想走那条路。所以接下来我看了看 F5,但都无法抓住它们。

此 OID 返回值 0:sysStatHttpRequests::1.3.6.1.4.1.3375.2.1.1.2.1.56

我知道这是不正确的,因为我每秒向 VIP 发送大约 1000 个 HTTP 请求。以下还返回值 0:

sysFastHttpStatResp2xxCnt   1.3.6.1.4.1.3375.2.1.1.2.14.16
sysFastHttpStatResp3xxCnt   1.3.6.1.4.1.3375.2.1.1.2.14.17
sysFastHttpStatResp4xxCnt   1.3.6.1.4.1.3375.2.1.1.2.14.18
sysFastHttpStatResp5xxCnt   1.3.6.1.4.1.3375.2.1.1.2.14.19

SNMP 正在工作,因为我能够提取其他指标,例如吞吐量、连接等……有人对如何在此环境中提取 HTTP 代码指标有任何想法吗?或者也许我完全错过了我需要在 F5 上设置的东西才能做到这一点。

  • F5 大 IP 3900
  • 版本:12.1.1

编辑:解决了我自己的问题。必须在 F5 上配置 AVR,然后将 HTTP 配置文件应用到虚拟服务器。

http snmp f5-big-ip datadog
  • 2 个回答
  • 621 Views
Martin Hope
030
Asked: 2016-06-15 06:03:36 +0800 CST

如何使用 Datadog 监控 Jenkins?

  • 3

datadog插件已安装在 Jenkins 上。安装后,必须在 Jenkins 中输入 Datadog API 密钥和主机名。两项测试均已通过。但是,当向 Datadog 添加新检查时,查询詹金斯检查不会返回任何詹金斯检查。

期望的情况

目的是使用 Datadog 监控 Jenkins 构建:

  • 什么时候开始构建
  • 构建何时完成
  • 构建持续时间 (jenkins.job.duration)
  • 作业是否已经完成(jenkins.job.completed)
  • 构建状态 (jenkins.job.status)

尝试

  • Jenkins 上已经安装了 datadog 代理
  • jenkins主机被datadog识别
  • 根据 datadog,驻留在 jenkins 上的 datadog 代理已启动
  • 根据此文档,需要将一些文件添加到 datadog 以在 Datadog 中启用 jenkins 监控,但由于它由 datadog 本身托管,因此无法访问该框。
  • 根据 datadog UI 的集成选项卡,Jenkins 插件已安装和配置
jenkins datadog
  • 3 个回答
  • 3192 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve