npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mup-netdata

v0.4.2

Published

Plugin for Meteor Up to setup NetData

Downloads

136

Readme

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: {
      netdataMaster: {
        // One server must be a master. All other servers send their metrics
        // to this one.
        master: true
      },
      one: {},
      two: {
        // Send alerts about this server to Slack
        // Default is true
        alarms: false,
      },
    },
    // Key used for authentication with the master instance in the GUID format.
    // Run `mup netdata generate-api-key` to get a random key
    // This option is Required
    apiKey: '630eb68f-e0fa-5ecc-887a-7c7a62614681',

    // The rest of the options are optional

    // Receive alerts in slack
    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'
    },

    // How often metrics are collected, in seconds. Default is 1
    updateEvery: 1,

    // Disk space used to store metrics, in megabytes. Defaults to 512
    dbEngineDiskSpace: 512,
  }
}

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.