Jimdo.logzio-alert

ansible-logzio-alert

Build Status Ansible Galaxy

Ansible module to set up alerts in logz.io

Installation

$ ansible-galaxy install Jimdo.logzio-alert

Documentation

Module options

Name Required Description Default
name true The unique name for the alert to be created
logzio_api_endpoint false The API endpoint for logz.io api.logz.io
logzio_api_token false The API token for logz.io. If not provided, it will use the LOGZIO_API_TOKEN environment variable
state false Whether the alert should exist or not present
description false A description of the alert
severity false The alert's severity (LOW, MEDIUM, or HIGH) MEDIUM
query true The search query that identifies messages for which we want to create an alert
operation false The operation for comparing the threshold GREATER_THAN
threshold false The threshold for the alert 0
timeframe false Time range in minutes for calculating the threshold 10
notification_emails false A list of email addresses to notify
enabled false Whether this alert should be enabled true
suppress false Time interval in minutes to suppress repeated notifications 5
aggregation_type false Type of aggregation to apply on the messages NONE
aggregation_field false The field to use for aggregation
group_by_fields false Fields to group messages by in the alert
notification_endpoints false Names of notification endpoints to trigger with this alert

Examples

Using the logzio_alert module in a Playbook

---
- hosts: localhost
  connection: local
  gather_facts: False
  roles:
    - Jimdo.logzio-alert
  tasks:
    - name: Set up Logzio Alert 'Example'
      logzio_alert:
        name: "Example"
        query: >
          message: "some message"
          AND NOT message: "some other message"
        suppress: 60
        group_by_fields:
          - type
        notification_endpoints:
          - Slack Team Channel
$ ansible-playbook alerts.yml
Informazioni sul progetto

Ansible module for logz.io alerts

Installa
ansible-galaxy install Jimdo.logzio-alert
Licenza
mit
Download
639
Proprietario