Monitor Your Agents

You can monitor your agents’ performance and session activity to ensure smooth operation. Agno offers built-in monitoring capabilities, allowing you to track session and performance metrics through app.agno.com.

Setup Process

Step 1: Authenticate

Before enabling monitoring, you need to authenticate using one of these methods:

Method A: Quick Setup

ag setup

Method B: API Key Configuration

You can get API key from Agno App.

export AGNO_API_KEY=your_api_key_here

Step 2: Enable Monitoring

After authentication, enable monitoring using one of these approaches:

Method A: For a Specific Agent

agent = Agent(markdown=True, monitoring=True)

Method B: Globally via Environment Variable

export AGNO_MONITOR=true

Step 3: Track Your Agent Sessions

Once monitoring is enabled, you can run your agent and view its session data:

  1. Create a file monitoring.py with this sample code:

    from agno.agent import Agent
    
    agent = Agent(markdown=True, monitoring=True)
    agent.print_response("Share a 2 sentence horror story")
    
  2. Run your code locally

  3. View your sessions at app.agno.com/sessions

Facing issues? Check out our troubleshooting guide