Ollama Monitoring & Observability with OpenTelemetry SigNoz now supports full observability for Ollama LLM workloads through OpenTelemetry, enabling developers to collect traces, logs, and metrics from local Python applications. The integration allows teams to correlate telemetry data in unified dashboards, configure alerts for latency and errors, and improve reliability of LLM deployments using automatic or manual instrumentation. What is Ollama Monitoring? Ollama monitoring with OpenTelemetry lets you collect traces, logs, and metrics from your local LLM workloads and export them to SigNoz. This guide walks you through setting up full Ollama observability using OpenTelemetry https://opentelemetry.io/ , covering automatic and manual instrumentation for Python applications. With full Ollama monitoring in SigNoz, you can correlate traces, logs, and metrics in unified dashboards, configure alerts for latency and errors, and gain actionable insights to improve the reliability and responsiveness of your LLM workloads. Prerequisites - A SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key or Self Hosted SigNoz instance https://signoz.io/docs/install/self-host/ - Internet access to send telemetry data to SigNoz Cloud - Python 3.10+ with ollama installed - For Python: pip installed for managing Python packages Ollama Monitoring with OpenTelemetry For more information on getting started with Ollama in your Python environment, refer to the Ollama quickstart guide https://docs.ollama.com/quickstart python . No code auto-instrumentation is recommended for quick setup with minimal code changes. It's ideal when you want to get observability up and running without modifying your application code and are leveraging standard instrumentor libraries. Step 1: Install the necessary packages in your Python environment. pip install \ opentelemetry-distro \ opentelemetry-exporter-otlp \ httpx \ opentelemetry-instrumentation-httpx \ opentelemetry-instrumentation-system-metrics \ ollama \ opentelemetry-instrumentation-ollama Step 2: Add Automatic Instrumentation opentelemetry-bootstrap --action=install Step 3: Configure logging level To ensure logs are properly captured and exported, configure the root logger to emit logs at the DEBUG level or higher: python import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG This sets the minimum log level for the root logger to DEBUG, which ensures that logger.debug calls and higher severity logs INFO, WARNING, ERROR, CRITICAL are captured by the OpenTelemetry logging auto-instrumentation and sent to SigNoz. Step 4: Create an example Ollama application Start by downloading a model: ollama pull gemma3 Create your Python app: python from ollama import chat from ollama import ChatResponse import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG response: ChatResponse = chat model='gemma3', messages= { 'role': 'user', 'content': 'What is SigNoz?', }, print response 'message' 'content' Step 5: Run your application with auto-instrumentation Run your application with the following environment variables set. This configures OpenTelemetry to export traces, logs, and metrics to SigNoz Cloud and enables automatic log correlation: OTEL RESOURCE ATTRIBUTES="service.name=