docs/docs/observability/troubleshoot/index.mdx
Observability is essential for identifying and resolving issues in real time. This guide provides a detailed approach to troubleshooting observability-related challenges in Hasura deployments. The focus is on efficient monitoring, debugging, and utilizing tools such as metrics, logs, and traces to maintain healthy and performant systems.
These tools work together to provide deep insights into your application, enabling quick detection and resolution of issues.
The ability to gauge a system's internal conditions by examining its outputs is known as observability. If the current state of a system can be inferred solely from its outputs—like logs, metrics, and traces—then the system is considered observable.
Without observability, identifying system issues becomes reactive and time-consuming. Observability enables you to:
The three foundational pillars of observability are:
These components don’t make a system observable by themselves—but when integrated and interpreted properly, they form a powerful framework for monitoring and debugging.
Logs offer granular visibility into what's happening inside your Hasura deployment. Depending on your Hasura Enterprise Edition deployment model (Docker, Kubernetes, etc.), logs can be exported and processed using appropriate logging drivers or agents.
We recommend forwarding container logs to Loki or your centralized logging system to:
Metrics provide numerical insight into the health and performance of your Hasura services. Hasura exposes metrics that can be visualized through pre-built Grafana dashboards.
Key metrics include:
These help monitor golden signals like latency, traffic, errors, and saturation.
Traces capture the full lifecycle of requests within Hasura, helping pinpoint where time is spent. Distributed tracing tools like Tempo or Jaeger can help you:
Instrument your services with OpenTelemetry to send trace data to a tracing backend, and visualize with Grafana.
Once set up, trace graphs provide powerful context during debugging and performance analysis.
Setting up a robust observability stack is essential for ensuring reliable and performant Hasura deployments. Logs, metrics, and traces together give you the visibility needed to detect, investigate, and resolve issues faster.