1. AI connectors #
Your models, with your permissions.
Observa ships no AI #
Observa contains no artificial intelligence model. It provides connection modules to the models you choose: your company's models hosted in-house, or public models. With no provider configured, AI features stay disabled and no data is sent.
| Provider | Models | Where data goes |
|---|---|---|
| Anthropic | Claude (claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5) | Anthropic API |
| OpenAI | ChatGPT (gpt-4o by default) | OpenAI API |
| Azure OpenAI | your deployment name | your Azure tenant, chosen region |
| OpenAI-compatible (public) | Gemini, Mistral AI, Grok (xAI), DeepSeek | provider's API (DeepSeek: outside the EU) |
| OpenAI-compatible (in-house) | Ollama, vLLM, LocalAI, LM Studio, LiteLLM | your infrastructure, nothing leaves |
Configuring the AI account #
Like the Grafana LLM plugin, the account is configured in the interface, Administration › AI tab: global switch, provider, API URL (optional, or a corporate gateway URL), API key (encrypted in the database, never sent back to the browser), model (list offered after a successful connection test), effort and step count, enabled features, minimum role and organization guidelines. The Test connection button shows latency without saving.
| Feature | Use |
|---|---|
| Conversational assistant | ✨ button: natural-language questions about your data |
| Contextual analysis | panels (⋮ menu → Analyse with AI), status summary |
| Dashboard and alert creation | from a description |
| Root cause analysis | on an alert, an incident, a service |
Common mistake : A consumer subscription (ChatGPT Plus, Claude Pro, Gemini Advanced, Le Chat Pro, SuperGrok) gives access to chat apps, not to the API. The API is paid separately, by usage, from the provider's developer console: create a key dedicated to Observa and set a monthly spending limit.
Good to know : The Restrict AI queries to the user's rights option is checked by default: queried data is filtered by the multi-tenant scope and permissions of the person asking. Unchecked, the AI queries sources with the service's rights: keep that for single-team instances.
The assistant and its tools #
Once a model is connected, the ✨ button opens an assistant that queries your sources, summarizes alerts, creates dashboards and rules in natural language. It acts on behalf of the user: the API applies their permissions to every action, and every action is audited. Pick a model that supports tool calling.
| Tool | Use |
|---|---|
| list_datasources · search_metrics | find the right source and metrics |
| query_datasource | run a query and read the result |
| list_dashboards · create_dashboard | find or create a dashboard |
| list_alert_rules · list_active_alerts · create_alert_rule | analyse and write alerts |
| list_otel_services | discover OpenTelemetry services |
Enforcing the configuration #
Environment variables are optional: set on the ai service (or the API), they enforce the value and lock the field in the interface. With Helm: ai.provider, ai.model, ai.baseUrl, ai.allowedRole, aiService.maxSteps and the secrets.aiApiKey secret.
AI_ENABLED=true
AI_PROVIDER=anthropic # anthropic | openai | azure_openai | openai_compatible
AI_API_KEY=<key>
AI_MODEL=claude-opus-5-5
AI_MAX_STEPS=12
AI_ALLOWED_ROLE=Editor
# Local model (Ollama, vLLM…): OpenAI-compatible API
# AI_PROVIDER=openai_compatible
# AI_BASE_URL=http://ollama:11434/v1
# AI_MODEL=llama3.1Best practice : For sensitive data, an in-house model behind an OpenAI-compatible API (or Azure OpenAI in your tenant) keeps everything inside your IT; the URL must be reachable from theaicontainer or pod, not just from your workstation. Restrict the assistant to a role (AI_ALLOWED_ROLE) and cap the number of steps (AI_MAX_STEPS) to control cost and duration.
Root cause analysis #
When the feature is enabled, a Root cause (AI) button appears on active alerts, incidents, a service panel in the service map and a service page in the entity catalog. The analysis runs in two stages.
- Deterministic evidence collection, without AI and read-only, over the alert period compared with a reference period: related alerts, service RED metrics, upstream and downstream dependencies, recent version change, pod restarts and OOM kills, error patterns in logs (Loki), failed traces (Tempo).
- Analysis by your model: it receives the evidence, may run extra read-only queries and returns a structured answer: likely cause with a confidence level, recommended actions, ruled-out hypotheses, cited evidence and timeline.
Each analysis is recorded in the audit log (ai.rca) and respects the isolation option. It is also available through the API: POST /api/ai/rca with {"service", "labels", "title", "from", "to"} (dates in milliseconds).
Privacy : Summaries of queried data go to the configured AI provider. Prefer an enterprise offering without data reuse, Azure OpenAI in your tenant, or a self-hosted model if your data must not leave your infrastructure.
2. The MCP server #
Connecting Claude and other agents.
The principle #
Observa ships a Model Context Protocol server on POST /api/mcp (Streamable HTTP transport, JSON-RPC 2.0). An agent (Claude Code, Claude Desktop, or any MCP client) connects with an obs_… service account token and inherits exactly its rights.
Connecting an agent #
claude mcp add --transport http observa https://observa.example.com/api/mcp \
--header "Authorization: Bearer obs_xxxxxxxx"{
"mcpServers": {
"observa": {
"type": "http",
"url": "https://observa.example.com/api/mcp",
"headers": { "Authorization": "Bearer obs_xxxxxxxx" }
}
}
}Then, in natural language: “Which critical alerts are firing on checkout, and who is on call?”, “Show the checkout error rate over the last hour”.
Testing by hand #
OBS=https://observa.example.com; TOKEN=obs_xxxxxxxx
H=(-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream')
curl -s "${H[@]}" $OBS/api/mcp -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
curl -s "${H[@]}" $OBS/api/mcp -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
curl -s "${H[@]}" $OBS/api/mcp -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_datasources","arguments":{}}}'Good to know : If theinitializeresponse contains anMcp-Session-Idheader, send it back on the following requests; responses may come as JSON or as an event stream (text/event-stream).
Security #
- One service account per agent, named, with the minimal role.
- A multi-tenant scope on that account if the agent must see only one customer.
- Regular review of the audit log (
mcp.tool) and revocation of unused tokens. - Never a token in a Git repository or a shared configuration file.
Watch out : An agent with an Editor token can silence alerts: a misunderstood prompt (or an injection in content read by the agent) would be enough to hide an outage. Keep that right for supervised uses.
