Skip to content

angrylogic/MMM-PrometheusAlerts

 
 

Repository files navigation

MMM-PrometheusAlerts

A MagicMirror² helper module to display Prometheus alerts from a Prometheus-compatible implementation.

Platform license Test Status Known Vulnerabilities

Example Scheduling

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/spyder007/MMM-PrometheusAlerts.git

Go to the modules folder:

cd MMM-PrometheusAlerts

Install the dependencies:

npm install --production

Add the module to the modules array in the config/config.js file:

    {
        module: 'MMM-PrometheusAlerts'
    },

Config Options

Option Default Description
prometheusUrl '' The URL of the Prometheus Instance.
animationSpeed 3000 Optional The speed of the show and hide animations in milliseconds
useHeader true Optional Whether or not to show the header
maxWidth 300px Optional The maximum width for this module
initialLoadDelay 3250 Optional How long to wait, in milliseconds, before the first status check
updateInterval 2 * 60 * 1000 Optional How often to check the status (defaults to 2 minutes)

Config Examples

Minimal Configuration

    {
      module: "MMM-PrometheusAlerts",
      position: "bottom_right",
      config: {
        prometheusUrl: "https//prometheus.mydomain.com"
      }
    },

Updating

To update the module to the latest version, use your terminal to go to your MMM-PrometheusAlerts module folder and type the following command:

git pull

If you haven't changed the modules, this should work without any problems. Type git status to see your changes, if there are any, you can reset them with git reset --hard. After that, git pull should be possible.

About

MagicMirror Module for Prometheus Alerts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.7%
  • CSS 17.3%