All Projects → madflojo → Automatron

madflojo / Automatron

Licence: apache-2.0
Infrastructure monitoring framework turning DevOps runbooks into automated actions

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Automatron

Goss
Quick and Easy server testing/validation
Stars: ✭ 4,550 (+1094.23%)
Mutual labels:  devops, devops-tools, health-check
Sematext Agent Docker
Sematext Docker Agent - host + container metrics, logs & event collector
Stars: ✭ 194 (-49.08%)
Mutual labels:  monitoring, devops, devops-tools
Kapitan
Generic templated configuration management for Kubernetes, Terraform and other things
Stars: ✭ 1,383 (+262.99%)
Mutual labels:  devops, devops-tools, jinja2
Awesome Sre Tools
A curated list of Site Reliability and Production Engineering Tools
Stars: ✭ 186 (-51.18%)
Mutual labels:  monitoring, devops, devops-tools
Spm Agent Mongodb
Sematext Agent for monitoring MongoDB
Stars: ✭ 7 (-98.16%)
Mutual labels:  monitoring, devops, devops-tools
Healthchecks
A cron monitoring tool written in Python & Django
Stars: ✭ 4,297 (+1027.82%)
Mutual labels:  monitoring, devops
Ostent
Ostent is a server tool to collect, display and report system metrics.
Stars: ✭ 171 (-55.12%)
Mutual labels:  monitoring, devops
Minicron
🕰️ Monitor your cron jobs
Stars: ✭ 2,351 (+517.06%)
Mutual labels:  monitoring, devops
Netdata
Real-time performance monitoring, done right! https://www.netdata.cloud
Stars: ✭ 57,056 (+14875.33%)
Mutual labels:  monitoring, devops
Firemotd
🔥 Fire Framework Linux MoTD Generator 🔥
Stars: ✭ 156 (-59.06%)
Mutual labels:  monitoring, health-check
Dogo
Monitoring changes in the source file and automatically compile and run (restart).
Stars: ✭ 237 (-37.8%)
Mutual labels:  monitoring, devops
Microsoft365dsc
Manages, configures, extracts and monitors Microsoft 365 tenant configurations
Stars: ✭ 374 (-1.84%)
Mutual labels:  monitoring, devops
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+600.52%)
Mutual labels:  monitoring, devops
Dockbix Agent Xxl
🐳 Dockerized Zabbix agent with Docker metrics and host metrics support for CoreOS, RHEL, CentOS, Ubuntu, Debian, Fedora, Boot2docker, Photon OS, Amazon Linux, ...
Stars: ✭ 177 (-53.54%)
Mutual labels:  monitoring, devops
Pyroscope
Continuous Profiling Platform! Debug performance issues down to a single line of code
Stars: ✭ 4,816 (+1164.04%)
Mutual labels:  monitoring, devops
Slacknimate
👯 Realtime text animation for Slack chatops
Stars: ✭ 250 (-34.38%)
Mutual labels:  monitoring, devops
Takeoff
A rapid development environment using docker for convenience.
Stars: ✭ 271 (-28.87%)
Mutual labels:  devops, devops-tools
Kubernetes Workshop
⚙️ A Gentle introduction to Kubernetes with more than just the basics. 🌟 Give it a star if you like it.
Stars: ✭ 3,122 (+719.42%)
Mutual labels:  devops, devops-tools
Express Status Monitor
🚀 Realtime Monitoring solution for Node.js/Express.js apps, inspired by status.github.com, sponsored by https://dynobase.dev
Stars: ✭ 3,302 (+766.67%)
Mutual labels:  monitoring, health-check
Promster
⏰A Prometheus exporter for Hapi, express and Marble.js servers to automatically measure request timings 📊
Stars: ✭ 146 (-61.68%)
Mutual labels:  monitoring, devops

Build Status Coverage Status

Automatron

Automatron is a framework for creating self-healing infrastructure. Simply put, it detects system events & takes action to correct them.

The goal of Automatron is to allow users to automate the execution of common tasks performed during system events. These tasks can be as simple as sending an email to as complicated as restarting services across multiple hosts.

Automatron Dashboard

Features

  • Automatically detect and add new systems to monitor
  • Monitoring is executed over SSH and completely agent-less
  • Policy based Runbooks allow for monitoring policies rather than server specific configurations
  • Supports Nagios compliant health check scripts
  • Allows dead simple arbitrary shell commands for both checks and actions
  • Runbook flexibility with Jinja2 templating support
  • Pluggable Architecture that simplifies customization

Runbooks

The core of Automatron is based around Runbooks. Runbooks are policies that define health checks and actions. You can think of them in the same way you would think of a printed runbook. Except with Automatron, the actions are automated.

A simple Runbook example

The below runbook is a very basic example, it will check if NGINX is running (every 2 minutes) and restart it after 2 unsuccessful checks.

name: Check NGINX
schedule: "*/2 * * * *"
checks:
  nginx_is_running:
    execute_from: target
    type: cmd
    cmd: service nginx status
actions:
  restart_nginx:
    execute_from: target
    trigger: 2
    frequency: 300
    call_on:
      - WARNING
      - CRITICAL
      - UNKNOWN
    type: cmd
    cmd: service nginx restart

The above actions will be performed every 300 seconds (5 minutes) until the health check returns an OK status. This delay allows time for NGINX to restart after each execution.

A complex Runbook with Jinja2

This next runbook example is a more complex version of the above. In this example we will use Jinja2 and Automatron's Facts to enhance our runbook further.

name: Check NGINX
{% if "prod" in facts['hostname'] %}
schedule:
  second: */20
{% else %}
schedule: "*/2 * * * *"
{% endif %}
checks:
  nginx_is_running:
    execute_from: target
    type: cmd
    cmd: service nginx status
actions:
  restart_nginx:
    execute_from: target
    trigger: 2
    frequency: 300
    call_on:
      - WARNING
      - CRITICAL
      - UNKNOWN
    type: cmd
    cmd: service nginx restart
  remove_from_dns:
    execute_from: remote
    trigger: 0
    frequency: 0
    call_on:
      - WARNING
      - CRITICAL
      - UNKNOWN
    type: plugin
    plugin: cloudflare/dns.py
    args: remove [email protected] apikey123 example.com --content {{ facts['network']['eth0']['v4'][0] }}

The above example uses Jinja2 and Facts to create a conditional schedule. If our target server has a hostname that contains the word "prod" within it. The schedule for the health check will be every 20 seconds. If not, it will be every 2 minutes.

Another addition is the remove_from_dns action, which will remove the target server's DNS entry using the CloudFlare DNS plugin.

By using Facts and Jinja2 together you can customize a single runbook to cover unique actions for multiple hosts and environments.

Stay in the loop

Twitter Follow Gitter

License

 Copyright 2016 Benjamin Cane

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
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].