Vai al catalogo
MONITOR-ALERT • Setup 24–48h su esempio

Sentinel

Controlla KPI, stock, errori e scadenze: se qualcosa sfora, avvisi subito. Prima che diventi un problema.

Richiedi stima Torna al catalogo
CodePulse Execution Environment
SCRIPT ENGINE (PYTHON)
import asyncio
import aiohttp
import psutil
import pandas as pd
from datetime import datetime

async def health_monitor_daemon(threshold_cpu=90.0, error_spike_limit=50):
    """Background worker that monitors system vitals and APIs"""
    
    # 1. System & Log Scraping
    current_cpu = psutil.cpu_percent(interval=1)
    logs_df = fetch_recent_logs('checkout_service')
    error_500_count = len(logs_df[logs_df['status_code'] == 500])
    
    alerts = []
    if current_cpu > threshold_cpu:
        alerts.append(f"CRITICAL: Database CPU at {current_cpu}%")
    if error_500_count > error_spike_limit:
        alerts.append(f"FATAL: {error_500_count} HTTP 500 errors on Checkout API in last 5m.")
        
    # 2. Asynchronous Webhook Dispatching (Teams / Slack)
    if alerts:
        payload = {
            "text": "⚠️ SISTEMA IN SOFFERENZA ⚠️",
            "blocks": [
                {"type": "section", "text": {"type": "mrkdwn", "text": "\n".join(alerts)}},
                {"type": "context", "elements": [{"type": "plain_text", "text": str(datetime.now())}]}
            ]
        }
        
        async with aiohttp.ClientSession() as session:
            await session.post('https://hooks.slack.com/services/T0000/B000/XXXX', json=payload)
            print(f"[{datetime.now()}] Dispatching incidents to Engineering channel.")

    await asyncio.sleep(60) # Run every minute loop
FLUSSO DATI IN INGRESSO
[STREAM DATI DAL LOG AZIENDALE O SITO ESTERNO]
GET /api/checkout 500 Internale Server Error (200 occorrenze in 5 min)
DB_CPU_LOAD: 94%
MONITOR ATTIVITÀ
Sistema in standby. In attesa del comando di esecuzione...

Il problema

Problemi scoperti tardi: stock finito, prezzi errati, job falliti, SLA saltati. Il costo cresce quando nessuno se ne accorge.

Cosa fa

  • Raccoglie dati da API/export o controlli programmati (anche su file/cartelle).
  • Calcola KPI e confronta con soglie o regole; distingue warning vs blocchi.
  • Invia alert (email/Teams/Slack) + genera report giornaliero/settimanale con log.

Esecuzione

Prima Controlli manuali, saltati nei momenti di carico.
Dopo Avvisi puntuali, evidenza delle anomalie e storico verificabile.

IO Schema

Input: Sorgenti dati (API/export/file), Regole e soglie
Output: Alert, Report, Log

Pacchetti

Starter
€ 99
Monitor su 1 sorgente + alert base + log

  • Monitor su 1 sorgente
  • Alert base
  • Log
Stima rapida
Business
€ 1.490
2–3 sorgenti + escalation + dashboard/report + 30 gg supporto

  • 2–3 sorgenti
  • Escalation
  • Dashboard/report
  • 30 gg supporto
Stima rapida
Su misura
da € 2.900
Incident workflow, integrazioni (mail/slack/teams), SLA

  • Incident workflow
  • Integrazioni (mail/slack/teams)
  • SLA
Stima rapida
Sentinel Verifica gratuita
Dati alla mano