Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'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) {
'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,