Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

mup-netdata

0.3.1 • Public • Published

mup-netdata

Plugin for Meteor Up to setup Netdata.

This is a very early version of the plugin and is missing some basic features.

Use

Install with npm i -g mup-netdata. Then, add mup-netdata to the plugins array in your mup config, and add a netdata object.

module.exports = {
  // rest of config
 
  plugins: ['netdata'],
  netdata: {
    servers: {
      one: {},
      two: {},
      netdataMaster: {
        // One server must be a master. All other servers send their metrics
        // to this one.
        master: true
      }
    },
    // Key used for authentication with the master instance in the GUID format.
    // Run `mup netdata generate-api-key` to get a random key
    apiKey: '630eb68f-e0fa-5ecc-887a-7c7a62614681',
 
    slack: {
      // Create an incoming webhook using the "Incoming Webhooks" App: https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
      webhookUrl: 'https://hooks.slack.com/services/example/example',
      // Set to where the slack messages are sent:
      // - '#channel'
      // - '@user'
      recipient: '#system-status'
    }
  }
}

This plugin only supports the configuration where there is a single master that stores the metrics, and all other instances are headless collectors that send the metrics to the master. If you need a different configuration, please create an issue or submit a pull request.

Next, run

mup setup

After it is setup, you can visit port 19999 on the server that is the master instance.

This plugin currently does not setup any authentication or access control. Netdata does not allow modifying data, but it does show information that could be helpful to a hacker. More information is available in the Netdata docs. The master netdata instance must be accessible to the other instances, but you can use a firewall or reverse proxy to block access from the internet.

If you have more than a couple of instances, you will probably need to increase the file descriptor limit.

All of the python collectors are disabled since on some servers these collectors use a large amount of CPU. If a specific python collector is useful to you, you can create a PR to enable it.

Install

npm i mup-netdata

DownloadsWeekly Downloads

91

Version

0.3.1

License

MIT

Unpacked Size

71.8 kB

Total Files

16

Last publish

Collaborators

  • avatar