All Projects → sensu-plugins → sensu-plugins-memory-checks

sensu-plugins / sensu-plugins-memory-checks

Licence: MIT License
This plugin provides native memory instrumentation for monitoring and metrics collection, including: memory usage via `free` and `vmstat`, including metrics. Note that this plugin may have cross-platform issues.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to sensu-plugins-memory-checks

Perf Tools
⏱→ 🚀A set of tools for improving performance your application (balancer, performance, PerfKeeper, LazyPromise).
Stars: ✭ 135 (+800%)
Mutual labels:  metrics, memory
sensu-plugins-mysql
This plugin provides native MySQL instrumentation for monitoring and metrics collection, including: service health, database connectivity, `InnoDB` locks, replication status, metrics collection, and sending metrics to a MySQL database.
Stars: ✭ 20 (+33.33%)
Mutual labels:  metrics, sensu-plugins
sensu-plugins-http
This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
Stars: ✭ 31 (+106.67%)
Mutual labels:  metrics, sensu-plugins
sensu-plugins-aws
This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.
Stars: ✭ 79 (+426.67%)
Mutual labels:  metrics, sensu-plugins
javametrics
Application Metrics for Java™ instruments the Java runtime for performance monitoring, providing the monitoring data visually with its built in dashboard
Stars: ✭ 19 (+26.67%)
Mutual labels:  metrics
StatsN
A modern c# statsd client for .net core and .net 4.0+
Stars: ✭ 19 (+26.67%)
Mutual labels:  metrics
fluentd-elastic-kibana
Working inital configuration for fluentd elastic and kibana
Stars: ✭ 40 (+166.67%)
Mutual labels:  metrics
gin-metrics
gin-gonic/gin metrics for prometheus.
Stars: ✭ 87 (+480%)
Mutual labels:  metrics
redis-key-dashboard
This tool allows you to do a small analysis of the amount of keys and memory you use in Redis. It allows you to see overlooked keys and notice overuse.
Stars: ✭ 42 (+180%)
Mutual labels:  memory
splunk-otel-java
Splunk Distribution of OpenTelemetry Java
Stars: ✭ 39 (+160%)
Mutual labels:  metrics
cimetrics
Track your metrics in GitHub PR to avoid unwanted regressions
Stars: ✭ 13 (-13.33%)
Mutual labels:  metrics
openmessaging.github.io
OpenMessaging homepage
Stars: ✭ 12 (-20%)
Mutual labels:  metrics
netdata-java-orchestrator
Netdata Java Plugin Daemon
Stars: ✭ 27 (+80%)
Mutual labels:  metrics
CPU-MEM-monitor
A simple script to log Linux CPU and memory usage (using top or pidstat command) over time and output an Excel- or OpenOfficeCalc-friendly report
Stars: ✭ 41 (+173.33%)
Mutual labels:  memory
visdom-docker
Visdom Docker
Stars: ✭ 12 (-20%)
Mutual labels:  metrics
torch-metrics
Metrics for model evaluation in pytorch
Stars: ✭ 99 (+560%)
Mutual labels:  metrics
octane-exporter
Export Laravel Octane metrics using this Prometheus exporter.
Stars: ✭ 14 (-6.67%)
Mutual labels:  metrics
freshli-lib
A tool for collecting historical metrics about a project's dependencies
Stars: ✭ 12 (-20%)
Mutual labels:  metrics
gateway
A proxy to buffer and forward metrics, events, and traces.
Stars: ✭ 94 (+526.67%)
Mutual labels:  metrics
bluerain
BlueRain is a fully-featured, managed memory manipulation library written in C#
Stars: ✭ 36 (+140%)
Mutual labels:  memory

Sensu Bonsai Asset Build Status Gem Version Code Climate Test Coverage Dependency Status

Sensu Memory Check Plugin

Overview

This plugin provides native memory instrumentation for monitoring and metrics collection, including memory usage via free and vmstat, including metrics. NOTE: This plugin may have cross-platform issues.

Files

  • bin/check-memory.rb
  • bin/check-memory.sh
  • bin/check-memory-percent.rb
  • bin/check-memory-percent.sh
  • bin/check-ram.rb
  • bin/check-swap-percent.rb
  • bin/check-swap.sh
  • bin/check-swap.rb
  • bin/metrics-memory-percent.rb
  • bin/metrics-memory.rb

check-memory Evaluate free system memory for Linux-based systems.

check-memory-percent Evaluate the percentage of free system memory for Linux-based systems.

check-ram Check the percentage of free RAM.

check-swap-percent Checks swap usage as a percentage of the total swap.

check-swap Evaluate swap memory usage for Linux-based systems.

metrics-memory-percent Read memory statistics as a percentage and put them in a form usable by Graphite. Metrics borrowed from HoardD.

metrics-memory-vmstat Read memory statistics and put them in a form usable by vmstat.

metrics-memory Read memory statistics and put them in a form usable by Graphite. Metrics borrowed from HoardD.

Usage examples

Help

check-ram.rb

Usage: /opt/sensu/embedded/bin/check-ram.rb (options)
    -c CRIT
    -f, --free                       checks free threshold, defaults to true
    -m, --megabytes                  Unless --megabytes is specified the thresholds are in percentage of memory used as opposed to MB of ram left
    -u, --used                       checks used threshold, defaults to false
    -w WARN

metrics-memory-percent.rb

Usage: /opt/sensu/embedded/bin/metrics-memory-percent.rb (options)
    -s, --scheme SCHEME              Metric naming scheme, text to prepend to metric

Configuration

Sensu Go

Asset registration

Assets are the best way to make use of this plugin. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the asset:

sensuctl asset add sensu-plugins/sensu-plugins-memory-checks

If you're using an earlier version of sensuctl, you can download the asset definition from this project's Bonsai Asset Index page.

Asset definition

---
type: Asset
api_version: core/v2
metadata:
  name: sensu-plugins-memory-checks
spec:
  url: https://assets.bonsai.sensu.io/c5391d4ae186484226732344b35cf95c0b07b8ec/sensu-plugins-memory-checks_4.0.0_centos_linux_amd64.tar.gz
  sha512: ea297a85aa3612da7f78d948f9784443fffac511040c5130a2dcde7191a0004044c2ef881e665520cbc64431955ab19920d84de6b5fed85c63da7091c4b93bf0

Check definition

---
type: CheckConfig
spec:
  command: "check-memory.rb"
  handlers: []
  high_flap_threshold: 0
  interval: 10
  low_flap_threshold: 0
  publish: true
  runtime_assets:
  - sensu-plugins/sensu-plugins-memory-checks
  - sensu/sensu-ruby-runtime
  subscriptions:
  - linux

Sensu Core

Check definition

{
  "checks": {
    "metrics-disk-usage": {
      "command": "metric-disk-usage.rb",
      "subscribers": ["linux"],
      "interval": 10,
      "refresh": 10,
      "handlers": ["influxdb"]
    }
  }
}

Installation from source

Sensu Go

See the instructions above for asset registration

Sensu Core

Install and setup plugins on Sensu Core

Additional notes

bin/check-ram.rb

Ruby does not have a good native way to grab information on memory usage (without using C extensions or running shell commands and parsing out). For this reason, check-ram.rb uses a gem called vmstat that has a dependency on a GCC to compile the C extensions.

To avoid errors that occur when trying to compile the C extensions without GCC present, we do not install the vmstat gem by default.

Users who need to use check-ram.rb must install build tools, including GCC. This usually requires two steps but can vary based on your distribution and Ruby setup:

  1. Install gcc. If you are on a Debian system, GCC is located in the build-essential package. On RHEL systems, yum groupinstall "Development tools" will provide the required packages.
  2. Install the vmstat gem into the path from which Sensu gems are expected to run, sudo /opt/sensu/embedded/bin/gem install vmstat --no-rdoc --no-ri, or the equivalent for installing Sensu gems in your configuration management system.

Certification verification

If you are verifying certificates in the gem install you will need the certificate for the sys-filesystem gem loaded in the gem certificate store.

Contributing

See CONTRIBUTING.md for information about contributing to this plugin.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].