Git Product home page Git Product logo

pm2-datadog's Introduction

pm2-datadog

This is a PM2 module to report application metrics and events in pm2 to Datadog.

Quick start

Install the module:

pm2 install pm2-datadog

Configuration variables

Variable Description Default
global_tags A list of global tags to send with every metric/event [None]
host The hostname or IP address of the DogStatsD daemon localhost
interval The polling interval for reporting metrics 10000
port The port for the DogStatsD daemon 8125

To set a configuration variable, please run the following in your project directory:

pm2 set pm2-datadog:<variable> <value>

Release

❯ npm version [<new version> | major | minor | patch] -m "Release %s"

License

MIT

pm2-datadog's People

Contributors

nunofgs avatar pedrobranco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pm2-datadog's Issues

Introduce process_id tag

Hi there !

We are using your module to monitor our NodeJS application and it works just fine ! Thanks !

All the collected metrics are describing processes and named accordingly pm2.processes.*. I fully understand the need of the instance tag but it would make more sense to name it process_id. That would align better with metrics' name and be more correct in my opinion : One PM2 instance is managing several NodeJS processes.

I also understand that renaming that tag would be a breaking change, even though Datadog allows you to rename your template variables to avoid modifying all your widgets in such case. Creating a duplicated tag could be a temporary solution for the transition.

I agree that this is a very opinionated suggestion. :-)

Cheers

Cannot install

When I run sudo pm2 install uphold/pm2-datadog I always get the error:

Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/uphold/pm2-datadog.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

Seems like git is trying to clone via SSH (why?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.