datadog-agent | present repository contains the source code | Monitoring library

 by   DataDog Go Version: 7.45.0 License: Apache-2.0

kandi X-RAY | datadog-agent Summary

kandi X-RAY | datadog-agent Summary

datadog-agent is a Go library typically used in Performance Management, Monitoring applications. datadog-agent has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The present repository contains the source code of the Datadog Agent version 7 and version 6. Please refer to the Agent user documentation for information about differences between Agent v5, Agent v6 and Agent v7. Additionally, we provide a list of prepackaged binaries for an easy install process here. Note: the source code of Datadog Agent v5 is located in the dd-agent repository.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              datadog-agent has a medium active ecosystem.
              It has 2200 star(s) with 1080 fork(s). There are 328 watchers for this library.
              There were 4 major release(s) in the last 12 months.
              There are 530 open issues and 753 have been closed. On average issues are closed in 46 days. There are 369 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of datadog-agent is 7.45.0

            kandi-Quality Quality

              datadog-agent has 0 bugs and 0 code smells.

            kandi-Security Security

              datadog-agent has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              datadog-agent code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              datadog-agent is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              datadog-agent releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 433839 lines of code, 18851 functions and 3344 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of datadog-agent
            Get all kandi verified functions for this library.

            datadog-agent Key Features

            No Key Features are available at this moment for datadog-agent.

            datadog-agent Examples and Code Snippets

            No Code Snippets are available at this moment for datadog-agent.

            Community Discussions

            QUESTION

            ECS TaskDefinition creation fails with "Invalid request provided: Create TaskDefinition: Unknown volume 'null'."
            Asked 2021-Nov-01 at 08:42

            I am attempting to use the CDK to deploy an EC2 TaskDefinition for a DataDog agent which uses 3 bind mount volumes. The DD example task definition looks pretty simple.

            The fragment of a Cloudformation template below has been generated by the AWS CDK. Deploying this raises the Unknown volume: 'null' error with all three volumes as is. It deploys successfully if no volumes are set.

            I have tried using changesets through the cloudformation UI to add volumes one at a time. Adding the first volume by itself works normally, but adding two or three fails with the Unknown volume: 'null' error, regardless of doing it in stages or in one lump.

            Editing the task definition manually through the ECS console does add a second volume successfully.

            There doesn't appear to be any documentation on this particular error, and I can't understand how the ECS service is getting a null in the volumes array. I suspect I'm missing something obvious somewhere, so hoping someone has some insight into what's going on.

            ...

            ANSWER

            Answered 2021-Nov-01 at 08:42

            Turns out I was misreading the CDK addMountPoints function.

            When I was having success adding the volumes, I was also not adding any mount points, but I kept adding mount points while also adding new things, so masked the actual error. This is the relevant javascript from my original code.

            Source https://stackoverflow.com/questions/69794487

            QUESTION

            kafka datadog not sending metrics correctly
            Asked 2021-Mar-24 at 15:02

            i am trying to send kafka consumer metrics to datadog but its not showing in monitoring when I select the node. The server is giving below check in status

            ...

            ANSWER

            Answered 2021-Mar-24 at 15:02

            Nothing is wrong there. DataDog conceals that the Kafka integration uses Dogstatsd under the hood. When use_dogstatsd: 'true within /etc/datadog-agent/datadog.yaml is set, metrics do appear in DataDog webUI. If that option is not set the default Broker data is available via JMXFetch using sudo -u dd-agent datadog-agent status as also via sudo -u dd-agent datadog-agent check kafka but not in the webUI.

            Source https://stackoverflow.com/questions/65717686

            QUESTION

            Use GitLab env variable in terraform file
            Asked 2020-Oct-28 at 13:46

            I have a secret stored as an env variable in GitLab : TF_VAR_DD_API_KEY

            In my main.tf I am doing something like this:

            ...

            ANSWER

            Answered 2020-Oct-28 at 13:46

            You need to add a module input variable like this:

            Source https://stackoverflow.com/questions/64563458

            QUESTION

            How do I configure this PostgreSQL check for DataDog?
            Asked 2020-Oct-17 at 22:24

            I try to setup a postgres check using DD Agent and i'm getting an error thrown by postgres.py script. As you can see in the screenshot, i'm using this simple query to get the number of active connections to a db. I've put it inside the /etc/datadog-agent/conf.d/postgres.d/conf.yaml like this :

            ...

            ANSWER

            Answered 2020-Oct-17 at 22:24

            In these kinds of checks, the response order matters, since the columns returned from the DB are going to be mapped back to the names specified in the YAML.

            Reading the error message:

            Error: postgres:953578488181a512 | (postgres.py:398) | non-numeric value cldtx for metric column active_connections of metric_prefix postgresql

            We can see that the value of cldtx is being returned for the active_connections column, which in the YAML is declared as a gauge, and this is a string.

            The fix should be straightforward, by reordering the YAML, like so:

            Source https://stackoverflow.com/questions/64108531

            QUESTION

            Unable to detect the kubelet URL automatically : datadog_checks.base.errors.CheckException
            Asked 2020-Jul-01 at 15:48

            I set up datadog trace client in my kubernetes cluster to monitor my deployed application. It was working fine with the kubernetes version 1.15x but as soon as I upgraded the version to 1.16x, the service itself is not showing in the Datadog Dashboard.

            Currently using:

            1. Kubernetes 1.16.9

            2. Datadog 0.52.0

            When checked for agent status. It is giving following exception :

            ...

            ANSWER

            Answered 2020-Jul-01 at 15:20

            This was a issue with deployed DataDog daemonset for me:

            What I did to resolve:

            1. Check daemonset if it exists or not:

            Source https://stackoverflow.com/questions/62436021

            QUESTION

            Using jinja if clause in ansible templated yaml (through template lookup )
            Asked 2020-May-06 at 09:30

            I've using ansible k8s module with a dynamic definition where I call it with

            ...

            ANSWER

            Answered 2020-May-05 at 20:19

            You can not put {{ }} inside {{ }} so try remove extra block:

            Source https://stackoverflow.com/questions/61621423

            QUESTION

            Chef resource, script inside "not_if" is not working
            Asked 2020-Feb-04 at 10:15

            I have a chef_resource that looks like this

            ...

            ANSWER

            Answered 2020-Feb-04 at 08:21

            You can try to create an execute resource with command equal to your bash not_if guard.

            Source https://stackoverflow.com/questions/60047871

            QUESTION

            awsvpc: Network Configuration is not valid for the given networkMode of this task definition
            Asked 2020-Jan-10 at 10:04

            My task definition:

            ...

            ANSWER

            Answered 2020-Jan-10 at 10:04

            You need to set the aws_ecs_task_definition's network_mode to awsvpc if you are defining the network_configuration of the service that uses that task definition.

            This is mentioned in the documentation for the network_configuration parameter of the aws_ecs_service resource:

            network_configuration - (Optional) The network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes.

            In your case you've added the network_mode parameter to the container definition instead of the task definition (a task is a collection of n containers and are grouped together to share some resources). The container definition schema doesn't allow for a network_mode parameter.

            Source https://stackoverflow.com/questions/59678757

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install datadog-agent

            To build the Agent you need:. Note: you may want to use a python virtual environment to avoid polluting your system-wide python environment with the agent build/dev dependencies. You can create a virtual environment using virtualenv and then use the invoke agent.build parameters --python-home-2=<venv_path> and/or --python-home-3=<venv_path> (depending on the python versions you are using) to use the virtual environment's interpreter and libraries. By default, this environment is only used for dev dependencies listed in requirements.txt. Note: You may have previously installed invoke via brew on MacOS, or pip in any other platform. We recommend you use the version pinned in the requirements file for a smooth development/build experience. Builds and tests are orchestrated with invoke, type invoke --list on a shell to see the available tasks.
            Go 1.17 or later. You'll also need to set your $GOPATH and have $GOPATH/bin in your path.
            Python 3.7+ along with development libraries for tooling. You will also need Python 2.7 if you are building the Agent with Python 2 support.
            Python dependencies. You may install these with pip install -r requirements.txt This will also pull in Invoke if not yet installed.
            CMake version 3.12 or later and a C++ compiler
            Checkout the repo: git clone https://github.com/DataDog/datadog-agent.git $GOPATH/src/github.com/DataDog/datadog-agent.
            cd into the project folder: cd $GOPATH/src/github.com/DataDog/datadog-agent.
            Install go tools: invoke install-tools.
            Install go dependencies: invoke deps. Make sure that $GOPATH/bin is in your $PATH otherwise this step might fail.
            Create a development datadog.yaml configuration file in dev/dist/datadog.yaml, containing a valid API key: api_key: <API_KEY>
            Build the agent with invoke agent.build --build-exclude=systemd. By default, the Agent will be built to use Python 3 but you can select which Python version you want to use: invoke agent.build --python-runtimes 2 for Python2 only invoke agent.build --python-runtimes 3 for Python3 only invoke agent.build --python-runtimes 2,3 for both Python2 and Python3 You can specify a custom Python location for the agent (useful when using virtualenvs): invoke agent.build \ --python-runtimes 2,3 \ --python-home-2=$GOPATH/src/github.com/DataDog/datadog-agent/venv2 \ --python-home-3=$GOPATH/src/github.com/DataDog/datadog-agent/venv3 . Running invoke agent.build: Discards any changes done in bin/agent/dist. Builds the Agent and writes the binary to bin/agent/agent. Copies files from dev/dist to bin/agent/dist. See https://github.com/DataDog/datadog-agent/blob/main/dev/dist/README.md for more information. If you built an older version of the agent, you may have the error make: *** No targets specified and no makefile found. Stop.. To solve the issue, you should remove CMakeCache.txt from rtloader folder with rm rtloader/CMakeCache.txt.

            Support

            The general documentation of the project, including instructions for installation and development, is located under the docs directory of the present repo.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/DataDog/datadog-agent.git

          • CLI

            gh repo clone DataDog/datadog-agent

          • sshUrl

            git@github.com:DataDog/datadog-agent.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Monitoring Libraries

            netdata

            by netdata

            sentry

            by getsentry

            skywalking

            by apache

            osquery

            by osquery

            cat

            by dianping

            Try Top Libraries by DataDog

            go-profiler-notes

            by DataDogJupyter Notebook

            glommio

            by DataDogRust

            stratus-red-team

            by DataDogGo

            dd-agent

            by DataDogPython

            integrations-core

            by DataDogPython