Skip to main content

Telegram bot for CSM jobs notifications

Project description

Delatore

Build Status codecov

Monitor and report status of customer service monitoring scenarios

State

Given project is just a concept

Architecture

Gather events (CSM)

  1. AWX (web hooks)
  2. Test scripts (direct http API calls)
  3. Telegraf (http output)

Process reports (server)

  1. Unify input (telegraf reports in fixed format)
  2. Running on test_host, created by kapellmeister
  3. Running in dedicated container
  4. No storage

Report (Telegram)

  1. Configured telegram chanel
  2. Direct messages to configured users
  3. Control target user/channel by severity map

Bot commands

Telegram bot accepts following commands:

/status

Bot reply to the message with last status(-es) retrieved from given source

Status has following syntax:

/status <source> [detailed_source] [history_depth]

If some argument contains spaces, it should be surrounded by quotes, either '...' or "..."

AWX Source

Status command for AWX source has following syntax:

/status awx [template_name] [history_depth]

Examples:

  • /status awx — return last job status for all scenarios
  • /status awx 'Buld test host' — return last job status for AWX template which called 'Buld test host'
  • /status awx 'Scenario 1.5' 3 — return status of last 3 jobs for AWX template which called Scenario 1.5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delatore-0.2.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

delatore-0.2.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file delatore-0.2.0.tar.gz.

File metadata

  • Download URL: delatore-0.2.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/5.0.0-1026-gcp

File hashes

Hashes for delatore-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec34b56316d05627e64063a32a138e8b39e6f8a14adcf0fff3d90fdad769b341
MD5 2b362645e65f592bcf08ccddc08c7640
BLAKE2b-256 99fd7c0d91039a8b373538569f3713f664ac11af90bd8cc1846dc185a8940e35

See more details on using hashes here.

File details

Details for the file delatore-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: delatore-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/5.0.0-1026-gcp

File hashes

Hashes for delatore-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0194bbd8952d50bb3457553a7e2f006b09f58f3be5109918ba22f825ba8711b
MD5 98de6103821f385093d922223ac5caec
BLAKE2b-256 a1757008bc03db3c236dccffdfcd121d7328a65a1c6caf6ae8566596ad5efd22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page