observability
35 pagesAdding Custom Spans and Metrics with OpenTelemetry
Auto-instrumentation covers HTTP, database, and messaging calls out of the box. To trace your own business logic or track application-specific events, add custom spans and metrics using theβ¦
Alerting
Alerting is a crucial part of observability, and it's the first step in knowing when something is wrong with your application.
Auto-configuration reference
Auto-generated frontend configuration values, environment variables, and the nais.js file structure.
Avoid false errors from expected 4xx responses
Fix inflated error rates in APM caused by exceptions that produce expected 4xx responses.
Correlate traces and logs
Learn how to correlate traces with logs in Grafana Tempo.
Create a dashboard in Grafana
Create a dashboard in Grafana for your application
Create alert in Grafana
Learn how to create an alert for your application in Grafana.
Create alert with Prometheus
Create alerts for your application using Prometheus.
Customize Prometheus alerts
Advanced guide to customized Prometheus alerts
Disable persistent application logs
Disable log storage for a specific application
Distributed Tracing
Application Performance Monitoring or tracing using Grafana Tempo on Nais.
Expose metrics from your application
Expose metrics from your application
Frontend observability
Frontend observability with Grafana Faro gives you real user monitoring, performance metrics, error tracking, and tracing for browser applications.
Frontend observability troubleshooting
Common issues and solutions for frontend observability with Faro.
Frontend-to-backend trace propagation
Connect frontend browser traces to backend spans for end-to-end visibility.
Get started with auto-instrumentation
Enable auto-instrumentation to collect traces and runtime metrics from your application without code changes.
Get started with Grafana Loki
Get started with Grafana Loki, the default and preferred log aggregation system for all Nais application
Get started with Grafana Tempo
Grafana Tempo is a distributed tracing backend that stores and queries traces. It is integrated with Grafana, so you can visualize and query traces alongside your metrics and logs.
Get started with Team Logs
Get started with Team Logs, a private logging solution leveraging Google Cloud Logs.
Getting Started with Observability in Nais
This tutorial walks you through enabling observability for your Nais application and finding your data in the Grafana stack.
Logging
Logs are a way to understand what is happening in your application. They are usually text-based and are often used for debugging. Since the format of logs is usually not standardized, it can be difficult to query and aggregate logs and thus we recommend using metrics for dashboards and alerting.
Metrics
Metrics are a way to measure the state of your application and can be used to create alerts and dashboards in Grafana.
Observability
Nais offers several methods for monitoring and observing your applications. This page describes the different options and how to use them.
Observability Glossary
Observability is the art of understanding how a system behaves by adding instrumentation such as logs, metrics, and traces.
OpenTelemetry Auto-Instrumentation Configuration
When you enable auto-instrumentation in your application the following OpenTelemetry configuration will become available to your application as environment variables:
OpenTelemetry Metrics
This is a list of metrics exported by the OpenTelemetry SDKs and auto-instrumentation libraries. The OpenTelemetry SDKs and auto-instrumentation libraries export the following general metrics:
OpenTelemetry Trace Semantic Conventions
OpenTelemetry Trace Semantic Conventions can be found at opentelemetry.io.
Prometheus Alerting Rule Reference
PrometheusRule resource specification for defining alerts in Prometheus.
Push metrics to Prometheus
Push metrics to Prometheus
Set up Faro
Set up Grafana Faro in your frontend application for real user monitoring, error tracking, and tracing.
Set up Faro with Next.js
Set up Grafana Faro in a Next.js application using the App Router.
Sourcemap deobfuscation
How sourcemap deobfuscation works for frontend error stack traces.
Span Metrics
Span metrics are collected for each span and provide insight into the performance of your application. On our platform, these metrics are generated by the Grafana Tempo metrics generator and exportedβ¦
Trace context propagation
Learn how to propagate trace context across process boundaries in a few common scenarios.
View logs from the command line
View logs from the command line using kubectl.