Observe
- Infrastructure Entities - Complete infrastructure topology including compute, storage, and networking resources
- Logs - Application and container logs for correlation with Diagnoses
- Metrics - Performance metrics from applications and infrastructure
- Service Discovery - Automatic discovery of services, workloads, and infrastructure components
- Signals - Automatic Signal detection from metrics, traces, and external monitoring systems
- Traces - Distributed traces for service dependency discovery and communication monitoring
Causely integrates with Observe to discover the Kubernetes clusters that send data to your Observe tenant, the application services running in them, and to use their metrics, traces, and container logs. Causely reads this data through the Observe API, so the Causely mediator doesn't need to run in, or have access to, the clusters themselves. Every cluster in your Observe tenant is discovered automatically, and new clusters are picked up without configuration changes.
How it works
Causely reads the datasets that the Observe Agent's Kubernetes Explorer package and Observe APM write:
| Observe dataset | Used for |
|---|---|
Kubernetes Explorer/Kubernetes Entity | Clusters, nodes, pods, containers, controllers, services, persistent volumes, and ingresses |
Kubernetes Explorer/Prometheus Metrics | Container and node CPU, memory, and ephemeral storage usage, and node connection tracking |
Kubernetes Explorer/Kubernetes Logs | Container logs, used as evidence for diagnoses |
Tracing/Span | Application services, their operations, and the calls between them |
Causely refreshes the topology every 5 minutes, and metrics and application services on every sync (every 5 minutes by default). Container logs are read from Observe when Causely needs them for a diagnosis.
Causely builds the same entities as its native Kubernetes integration, including controllers with their compute specs, persistent volumes linked to the pods that mount them, and Signals from pod and container status such as crashes and out-of-memory kills.
Clusters that a Causely agent already monitors
If a Causely agent already runs in a cluster that also sends data to Observe, Causely keeps the agent's view of that cluster and doesn't rebuild it from Observe. Application services and calls in that cluster are still discovered from Observe traces, and are linked to the entities the agent discovered.
Application services from Observe APM
When your applications send traces to Observe, Causely discovers your application services and how they communicate:
- Services: each traced service is linked to the Kubernetes service of the pods that emitted its spans. A traced service without a matching Kubernetes service gets its own service in Causely.
- Operations: HTTP routes (for example,
/api/users/{id}) and RPC methods, with their request and error counts. Health check endpoints are skipped. - Dependencies: calls between services become access edges. Calls to databases add the database to the service that hosts it, and messages sent to or read from Kafka, RabbitMQ, Amazon SNS and SQS, and other messaging systems become topic accesses.
- Metrics: request rate, error rate, and latency for each service.
Causely reads spans from both OpenTelemetry and Datadog instrumentation. It summarizes them in Observe, so raw spans aren't exported.
Prerequisites
- The Observe Agent with the Kubernetes Explorer package, installed on each cluster you want Causely to discover.
- To discover application services: traces sent to Observe APM, so the
Tracing/Spandataset exists in your tenant. - Your Observe customer ID. It's the number in your Observe URL, for example
123456789012inhttps://123456789012.observeinc.com. - An Observe API token with read access to the Kubernetes Explorer datasets, and to the Tracing datasets if you use Observe APM.
Step 1: Create a Kubernetes Secret with the Observe credentials
Create a Kubernetes Secret with your Observe customer ID and API token. The url key is optional and defaults to https://<customer-id>.observeinc.com:
kubectl create secret generic \
--namespace causely observe-credentials \
--from-literal=customer-id="..." \
--from-literal=api-token="..."
Step 2: Update Causely configuration
Once the secret is created, update the Causely configuration to enable the Observe scraper:
scrapers:
observe:
enabled: true
accounts:
- secretName: observe-credentials
To discover only some of the clusters in your Observe tenant, list them by name:
scrapers:
observe:
enabled: true
accounts:
- secretName: observe-credentials
clusters:
- production-east
- production-west
Application services
Application services are discovered from Observe APM by default.
If your traces also reach Causely another way, for example through OpenTelemetry, set scrapers.observe.service_topology: false so services and calls aren't discovered twice.
Alternative: Enable Credentials Autodiscovery
Causely supports credentials autodiscovery so you can add new accounts without editing config. Label the Kubernetes secret to enable autodiscovery for the Observe scraper:
kubectl --namespace causely label secret observe-credentials "causely.ai/scraper=Observe"
Export Issues and Diagnoses to Observe
Causely can also push Issues and Diagnoses to Observe. For details, see Observe export.