Gathering detailed insights and metrics for elasticman
Gathering detailed insights and metrics for elasticman
Gathering detailed insights and metrics for elasticman
Gathering detailed insights and metrics for elasticman
npm install elasticman
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Commits
7 Branches
1 Contributors
Updated on 08 May 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
200%
3
Compared to previous day
Last week
-57.1%
6
Compared to previous week
Last month
300%
28
Compared to previous month
Last year
35.1%
177
Compared to previous year
The elastiman constantly monitors the your elasticsearch cluster's health by checking the following:
It checks the overall clusters health as if any of the node left the cluster or any shard is not avaliable.
It checks over all the nodes present in the cluster following parameters:
• CPU usage Alert
• Memory usage alert
• Disk space usage for all mounts on perticular node
• Swap Memory alert
• Open File Descriptors alert
• Heap usage alert
Currenty Elasticman supports mail and slack integrations.
Install the package npm:
1npm i elasticman -g
Then, create a file called config.js
and paste the following inside it:
1module.exports = { 2 // Elasticsearch Cluster Nodes uri's 3 nodes: [ 4 'http://localhost:9200' 5 ], 6 // Number of seconds to wait in between health checks 7 interval: 30, 8 // Alerting CPU usage in percent 9 maxCpuUsage: 50, 10 // Cutoff Nodes memory in percentage 11 maxAvailableMemoryInUse: 60, 12 // Alerting data space in percentage (will calculate for all the mount storages) 13 maxDataSpaceInUse: 80, 14 // alerting OS swap memory in percentage 15 maxSwapMemory: 50, 16 // alerting open file descriptors in percentage 17 maxOpenFileDescriptors: 80, 18 // Alerting jvm heap size in percentage 19 maxHeapUsed: 80, 20 // SMTP configuration for sending alert e-mails (delete to disable) 21 smtp: { 22 host: 'smtp.gmail.com', 23 port: 465, 24 secure: true, 25 auth: { 26 user: 'username@gmail.com', 27 pass: 'password' 28 }, 29 address: 'username@gmail.com' 30 }, 31 // Slack configuration for sending alert messages through webhook (delete to disable) 32 slack: { 33 channelUrl: 'https://hooks.slack.com/services/xxx/xxx/xxx', 34 notifyMembers: ['gurbaj', 'singh'] // enter slack user names here 35 } 36};
Modify the configuration file according to your need:
• smtp
(optional) - the SMTP e-mail configuration for sending alerts (using Gmail, AWS SES, etc)
• slack
(optional) - the Slack webhook configuration for sending alert messages
Test the SMTP configuration by running:
1elasticman --test-email
Test the Slack configuration by running:
1elasticman --test-slack
Finally run elasticman
from the same directory as your config.js
or you can also provide the confing file's path by running the command elasticman -c <path to the config file>
If you want to keep your process running uninterrupted (recommended), it is advisable to use a process manager like PM2 or forever.
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More