tutorial

Monitoring Langflow with Vigilmon

Langflow is your visual LLM workflow builder — but when the server goes down, your deployed AI flows stop serving requests. Here's how to monitor Langflow's web UI, health API, flow endpoints, and SSL certificates with Vigilmon.

Langflow is an open-source visual builder for LLM applications — drag-and-drop RAG pipelines, LangChain chains, multi-agent workflows, and conversational AI apps that deploy as REST API endpoints. When Langflow goes down, your deployed flows stop serving requests silently. Vigilmon catches it: web UI availability, the /health API, the version endpoint, SSL certificate expiry, and end-to-end flow execution heartbeats — all from a single dashboard.

What You'll Set Up

  • HTTP uptime monitor for the Langflow web UI (port 7860)
  • REST API health check for /health (application + database status)
  • API server availability check via /api/v1/version
  • SSL certificate expiry alerts for HTTPS-proxied deployments
  • Heartbeat monitoring for Langflow flow execution (canary flow endpoint)

Prerequisites

  • Langflow running via Docker or pip install langflow (default port 7860)
  • HTTPS proxy configured (Nginx or Traefik) for production deployments
  • A free Vigilmon account

Step 1: Monitor the Langflow Web UI

The Langflow web interface is the first sign of trouble when the Python server crashes or the Docker container fails. Add an HTTP monitor for immediate visibility:

  1. Log in to vigilmon.online and click Add Monitor.
  2. Set Type to HTTP / HTTPS.
  3. Enter your Langflow URL: https://langflow.yourdomain.com (or http://your-server:7860 for local deployments).
  4. Set Check interval to 1 minute.
  5. Set Expected HTTP status to 200.
  6. Click Save.

For a more targeted check, use the built-in health page:

https://langflow.yourdomain.com/health

This route is served directly by Langflow's FastAPI backend, making it a reliable proxy for the Python server's availability rather than a static asset check.


Step 2: Monitor the /health REST API Endpoint

Langflow exposes a /health endpoint that returns a JSON status response when the application is healthy and the database (SQLite or PostgreSQL) is connected. This is the most reliable indicator of overall system health:

  1. Add a new HTTP / HTTPS monitor in Vigilmon.
  2. Set the URL to https://langflow.yourdomain.com/health.
  3. Set Check interval to 1 minute.
  4. Set Expected HTTP status to 200.
  5. Under Response body contains, enter "ok" to assert the expected healthy payload.
  6. Click Save.

Verify the endpoint before adding the monitor:

curl -s https://langflow.yourdomain.com/health | jq .

A healthy Langflow instance responds with:

{
  "status": "ok"
}

If the database connection fails or the application encounters a startup error, this endpoint returns a non-200 status — and Vigilmon alerts you before your deployed flows start returning errors to callers.


Step 3: Monitor the /api/v1/version Endpoint

The version endpoint confirms that the Langflow API server is accepting requests and returning valid responses. It's lightweight — no database dependency — making it useful as a secondary check that specifically validates API routing:

  1. Add another HTTP / HTTPS monitor in Vigilmon.
  2. Set the URL to https://langflow.yourdomain.com/api/v1/version.
  3. Set Check interval to 1 minute.
  4. Set Expected HTTP status to 200.
  5. Under Response body contains, enter "version" to assert a valid JSON response structure.
  6. Click Save.

A normal response looks like:

{
  "version": "1.1.0",
  "package": "langflow"
}

Pairing the /health check (database-dependent) with the /api/v1/version check (API-routing only) lets you distinguish database failures from application failures in your incident timeline.


Step 4: SSL Certificate Alerts

Langflow is typically deployed behind an Nginx or Traefik reverse proxy that handles TLS termination. If Let's Encrypt auto-renewal fails, your AI application endpoints become inaccessible — API clients calling deployed flows will start receiving TLS errors.

Enable SSL monitoring on your Langflow HTTP monitor:

  1. Open the Langflow web UI monitor created in Step 1.
  2. Enable Monitor SSL certificate in the SSL section.
  3. Set Alert when certificate expires in less than 21 days.
  4. Click Save.

For Nginx deployments, check your renewal configuration:

# Verify renewal will succeed before the actual expiry
certbot renew --dry-run

# List all certificates and their expiry dates
certbot certificates

The 21-day window gives you time to investigate failures and renew manually if automation breaks:

certbot renew --force-renewal -d langflow.yourdomain.com
nginx -s reload

Step 5: Heartbeat Monitoring for Flow Execution

Langflow flows are served as REST API endpoints at /api/v1/run/:flow_id. Even when the application is healthy (the /health check passes), a specific flow can fail to execute if its LangChain components are misconfigured, an LLM API key has expired, or a vector store connection is broken.

Use a canary flow — a minimal Langflow flow that runs end-to-end — to verify the execution engine is processing requests:

Create the canary flow:

  1. In Langflow, create a simple flow: a text input component connected to a basic prompt and an LLM output.
  2. Make the flow minimal and cheap to run (use a fast LLM model, short prompt).
  3. Deploy the flow and copy its flow ID from the URL.

Set up the heartbeat in Vigilmon:

  1. Click Add MonitorCron Heartbeat.
  2. Set the expected ping interval to 10 minutes.
  3. Copy the heartbeat URL (e.g. https://vigilmon.online/heartbeat/abc123).

Create a cron job that calls the canary flow and pings Vigilmon on success:

# /etc/cron.d/langflow-heartbeat
*/10 * * * * root \
  curl -sf -X POST https://langflow.yourdomain.com/api/v1/run/YOUR_FLOW_ID \
    -H "Content-Type: application/json" \
    -d '{"input_value": "ping", "input_type": "chat"}' \
  && curl -s https://vigilmon.online/heartbeat/abc123

If the flow execution fails (LLM error, component failure, execution timeout), the && chain prevents the heartbeat ping — and Vigilmon alerts after 10 minutes of silence.

For Docker deployments, add the cron job to a separate container or use a scheduled Langflow flow that makes an HTTP request to a second Vigilmon heartbeat URL:

import requests
import schedule
import time

def check_flow_health():
    try:
        resp = requests.post(
            "https://langflow.yourdomain.com/api/v1/run/YOUR_FLOW_ID",
            json={"input_value": "ping", "input_type": "chat"},
            timeout=30
        )
        resp.raise_for_status()
        requests.get("https://vigilmon.online/heartbeat/abc123", timeout=5)
    except Exception:
        pass  # Silence from heartbeat triggers the Vigilmon alert

schedule.every(10).minutes.do(check_flow_health)
while True:
    schedule.run_pending()
    time.sleep(1)

Step 6: Configure Alert Channels

  1. Go to Alert Channels in Vigilmon and add Slack, email, or a webhook.
  2. Set Consecutive failures before alert to 2 on the web UI monitor — FastAPI startup can cause one probe to fail transiently during restarts.
  3. Suppress alerts during model updates or flow redeployments with a maintenance window:
# Pause monitors during Langflow version upgrade
curl -X POST https://vigilmon.online/api/maintenance \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"monitor_id": "abc123", "duration_minutes": 15}'

docker compose pull langflow && docker compose up -d langflow

Summary

| Monitor | Target | What It Catches | |---|---|---| | Web UI | https://langflow.domain.com | Python server crash, container failure | | Health API | /health | Database disconnection, startup errors | | Version endpoint | /api/v1/version | API routing failure, partial startup | | SSL certificate | Main domain | Let's Encrypt renewal failure | | Canary flow heartbeat | /api/v1/run/:flow_id | Flow execution engine failure, broken LLM components |

Langflow puts LLM application building within reach of any engineer — but self-hosted deployments mean you own the reliability story. With Vigilmon watching the health API, version endpoint, SSL certificate, and a canary flow executing end-to-end, you'll know the moment your AI workflows stop serving requests rather than hearing about it from an API consumer.

Monitor your app with Vigilmon

Free plan — 5 monitors, no credit card required. Up and running in 60 seconds.

Start free →