How to use the @pm2/io.initModule function in @pm2/io

To help you get started, we’ve selected a few @pm2/io examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keymetrics / pm2-elasticsearch / app.js View on Github external
'use strict'

const io = require('@pm2/io')
const elasticsearch = require('elasticsearch')
const stats = require('./lib/stats')
const Actions = require('./lib/actions')

io.initModule({
  widget: {
    type: 'generic',
    logo: 'https://www.elastic.co/static/img/logo-elastic.png',
    theme: ['#39bdb1', '#1B2228', 'white', '#807C7C'],
    el: {
      probes: true,
      actions: true
    },

    block: {
      issues: true,
      meta: true,
      main_probes: ['Elastic status', 'Nodes', 'Shards', 'Indices', 'Documents', 'Store size']
    }
  }
}, function (err, conf) {
github keymetrics / pm2-server-monit / src / index.js View on Github external
'use strict'

const io = require('@pm2/io')
const CPUMetrics = require('./metrics/cpu.js')
const NetworkMetrics = require('./metrics/network.js')
const DiskMetrics = require('./metrics/disk.js')
const MemoryMetrics = require('./metrics/memory.js')
const FSMetrics = require('./metrics/fs.js')
const TTYMetrics = require('./metrics/tty.js')
const ProcessesMetrics = require('./metrics/processes.js')

const MonitoringActions = require('./actions.js')

io.initModule({
  widget: {
    type: 'generic',
    logo: 'https://www.glcomp.com/media/catalog/category/Dell-R620_3_1_1.png',

    theme: ['#111111', '#1B2228', '#807C7C', '#807C7C'],

    el: {
      probes: true,
      actions: true
    },

    block: {
      actions: false,
      issues: true,
      meta: true,
      cpu: false,

@pm2/io

PM2.io NodeJS APM

Apache-2.0
Latest version published 1 month ago

Package Health Score

85 / 100
Full package analysis

Similar packages