openobserve-standalone
by openobserve
Logs, Metrics and Traces, Dashboards, RUM, Error tracking, Session replay etc. Elasticsearch API compatibility.
About this chart
openobserve helm chart
Amazon EKS
By default standalone openobserve uses local disk as a storage. You can configure persistence storage or s3 storage.
Openobserve uses IRSA on Amazon EKS to securely access s3.
You must set a minimum of 2 values:
- S3 bucket where data will be stored
- config.ZO_S3_BUCKET_NAME
- IAM role for the serviceAccount to gain AWS IAM credentials to access s3
- serviceAccount.annotations."eks.amazonaws.com/role-arn"
Install
helm repo add openobserve https://charts.openobserve.ai
helm repo update
kubectl create ns openobserve
helm --namespace openobserve -f values.yaml install o2 openobserve/openobserve-standalone
Uninstall
helm delete o2
Enterprise Features
O2 AI (AI-Powered Operations)
O2 AI is an enterprise-only feature that enables AI-powered operations and intelligent troubleshooting capabilities in OpenObserve Standalone.
Prerequisites
- Enterprise License: O2 AI is only available with OpenObserve Enterprise
- API Key: You need an API key from one of the supported AI providers (OpenAI, Anthropic, Gemini, etc.)
Configuration
To enable O2 AI in standalone mode, set the following values in your values.yaml:
enterprise:
enabled: true
parameters:
O2_AI_ENABLED: "true" # Enable AI features
o2ai:
enabled: true # Deploy O2 AI (required when O2_AI_ENABLED is true)
config:
O2_AI_MODEL: "claude-3-5-sonnet-20241022" # Or your preferred model
O2_AI_PROVIDER: "anthropic" # Options: openai, anthropic, gemini, etc.
auth:
O2_AI_API_KEY: "your-api-key-here" # Your AI provider API key
O2_MCP_USERNAME: "[email protected]" # MCP authentication (optional)
O2_MCP_PASSWORD: "your-password" # MCP authentication (optional)
Note: In standalone mode, O2 AI always runs with a single replica.
Cluster Access (kubectl)
O2 AI can execute kubectl, aws, az, git, and gh commands against the local cluster. This is disabled by default. When enabled, a dedicated ServiceAccount, ClusterRole, and ClusterRoleBinding are created and the pod mounts a CLI config at /app/config.yaml.
enterprise:
o2ai:
clusterAccess:
enabled: true
IRSA on AWS EKS — annotate the ServiceAccount with an IAM role so the pod can also run aws CLI commands:
enterprise:
o2ai:
clusterAccess:
enabled: true
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME
GKE Workload Identity:
enterprise:
o2ai:
clusterAccess:
enabled: true
serviceAccount:
annotations:
iam.gke.io/gcp-service-account: SA_NAME@PROJECT_ID.iam.gserviceaccount.com
Custom RBAC rules — override the default ClusterRole rules:
enterprise:
o2ai:
clusterAccess:
enabled: true
rbac:
rules:
- apiGroups: [""]
resources: ["pods", "services", "namespaces"]
verbs: ["get", "list", "watch"]
Custom CLI config — override which commands the agent is allowed to run:
enterprise:
o2ai:
cliConfig:
clis:
kubectl:
command: kubectl
allowed_subcommands: ["get", "describe", "logs"]
timeout_seconds: 30
description: "Read-only kubectl access"
clusterAccess:
enabled: true
Using AI Gateway
If you have an AI Gateway deployed (e.g., Envoy Gateway with AI routing), you can configure O2 AI to route through it:
aiGateway:
enabled: true
gatewayServiceName: "ai-gateway"
gatewayNamespace: "gateway-namespace" # Leave empty to use release namespace
port: 80
Deploy Envoy Gateway and AI Gateway: For instructions on deploying Envoy Gateway with AI routing capabilities, rate limiting, and metrics blocking, see: https://github.com/openobserve/o2-envoy-gateway
Internal Secret Between OpenObserve and O2 AI (optional)
Set auth.O2_AI_INTERNAL_SECRET to make O2 AI accept incident root-cause-analysis (sre-rca) requests only from callers that present a shared secret:
auth:
O2_AI_INTERNAL_SECRET: "<random value, e.g. from: openssl rand -hex 32>"
When set, the value is stored in the chart's Secret and the same value is given to both sides:
- the O2 AI container as
O2_INTERNAL_API_SECRET: it rejectssre-rcarequests with 401 unless thex-o2-internal-secretheader matches - the OpenObserve container as
O2_AI_INTERNAL_SECRET: it sends that header onsre-rcacalls
This is opt-in and empty by default, in which case nothing is set on either side. Only enable it with an OpenObserve image that sends the x-o2-internal-secret header; an older image would get 401 from the agent and incident RCA would stop working. Once it is set, you can also make O2 AI refuse to start without the secret:
enterprise:
o2ai:
extraEnv:
- name: O2_REQUIRE_INTERNAL_SECRET
value: "true"
Setting or changing the value through auth.O2_AI_INTERNAL_SECRET restarts O2 AI and the OpenObserve pods together, because each pod template carries a checksum of it, so both sides switch at the same time.
Important Notes
- Validation: The deployment will fail if
O2_AI_ENABLEDis set to"true"butenterprise.o2ai.enabledis nottrue - Single Replica: Unlike the distributed chart, the standalone O2 AI always runs with 1 replica (no autoscaling)
- Resource Requirements: Default requests are 256Mi memory and 250m CPU
Other Enterprise Features
The standalone chart also supports the following enterprise features:
- Service Graph: Visualize service dependencies
- Incidents Management: Intelligent incident detection and RCA
- Service Streams: Advanced correlation and pattern detection
Configuration is the same as the distributed chart - see the main chart documentation for details.
Envoy Gateway Integration
OpenObserve Standalone provides seamless integration with Envoy Gateway for enterprise-grade traffic management and security.
Deploy O2 Envoy Gateway
For production deployments, we recommend using O2 Envoy Gateway which provides:
- AI Traffic Routing: Intelligent routing to OpenAI, Anthropic, Gemini, and other AI providers
- Rate Limiting: Protect your endpoints from abuse
- Metrics Blocking: Control access to metrics endpoints
- TLS Termination: Automatic certificate management
- Advanced Load Balancing: Sophisticated traffic distribution
- Observability: Deep insights into API traffic
Deploy O2 Envoy Gateway: https://github.com/openobserve/o2-envoy-gateway
Configuration
Once Envoy Gateway is deployed, configure OpenObserve Standalone to use it:
gateway:
enabled: true
httpRoutes:
routes:
- name: openobserve-ui
gateways:
- my-gateway
hostnames:
- ui.example.com
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
# Use the full service name for standalone
- name: o2-openobserve-standalone
port: 5080
Important: For standalone deployments, ensure the backendRefs.name matches your actual service name (typically {{ release-name }}-openobserve-standalone).
Development
If you are developing this chart then you should clone the repo and make any modifications.
You can generate output of the chart using below command to verify:
helm -n openobserve template o2 . > o2.yaml
You can then install using:
helm -n openobserve install o2 .
To upgrade
helm -n openobserve upgrade o2 .
To uninstall
helm -n openobserve uninstall o2 .
Deploy openobserve-standalone with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openobserve-standalone on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopenobserve-standalone is pinned at v1.1.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply