Make sure your imports and ETL run correctly.
Data imports are often business-critical. A failed sync can have significant impacts.
MoniTao Heartbeat monitors your import scripts and measures their execution time.
Imports can fail for many reasons:
MoniTao Heartbeat allows you to monitor your imports and be alerted in case of problems.
Here is a Python example with heartbeat integration:
# Python example with heartbeat
import requests
HEARTBEAT_TOKEN = "YOUR_TOKEN"
API_SECRET = "YOUR_SECRET"
BASE_URL = "https://monitao.com/api/heartbeat"
def import_data():
# Signal start
requests.post(f"{BASE_URL}/start/{HEARTBEAT_TOKEN}",
headers={"Authorization": f"Bearer {API_SECRET}"})
try:
# Your import logic here
process_csv_file()
# Signal success
requests.post(f"{BASE_URL}/ping/{HEARTBEAT_TOKEN}",
headers={"Authorization": f"Bearer {API_SECRET}"})
except Exception as e:
# Signal failure
requests.post(f"{BASE_URL}/fail/{HEARTBEAT_TOKEN}",
headers={"Authorization": f"Bearer {API_SECRET}"})
raise e
Use /start at the beginning and /ping at the end. MoniTao will calculate the duration.
Alerts on excessive duration are planned for a future version.
Send /fail if critical errors occur, /ping otherwise.
Currently heartbeat doesn't accept additional data.
Start free, no credit card required.