The Monitoring (APM) setting determines where the backend created by Kuika will report its monitoring data (traces) and errors. By configuring this setting through the Kuika Config Manager module, you can centrally monitor your application’s runtime behavior.
Two providers are supported:
Elastic APM: An Elastic-based monitoring solution that allows you to monitor the performance of application transactions, analyze errors and exceptions, measure service-level performance, and segment data by environment (production, staging, development).
OpenTelemetry (OTLP): It sends trace data via the OTLP protocol to Grafana Tempo, Jaeger, Datadog, the OpenTelemetry Collector, or any other receiver that supports OTLP.
In this guide, you’ll learn step-by-step how to configure Monitoring (APM) settings, how to fill out the fields for both providers, and how to test the integration.
How to Configure Monitoring (APM) Settings?
1. Open or Create the Configuration
Log in to the Kuika platform.
From the Apps screen, open the project you’ll be working on.
Click the Config Manager module in the top menu.
To create a new configuration, click the “Create a blank configuration” card, give the configuration a name, and complete the creation process. If you want to use an existing configuration, click its name in the list.
2. Go to the Monitoring (APM) Settings
Make sure the “App Settings” tab is selected at the top of the configuration screen.
In the left menu, click the Monitoring (APM) option under the Operations heading. You can also quickly access this setting by typing “monitoring” or “apm” into the Search settings field at the top of the menu.
The screen that opens contains two fields:
Provider: Select the provider to which the monitoring data will be sent: Elastic APM or OpenTelemetry (OTLP).
Configuration: Displays the saved configuration for the selected provider. By default, None is selected. Click the ADD NEW link below the drop-down menu to create a new configuration. The number of saved configurations for that provider appears next to the link (e.g., “0 saved”).
You can add notes about the configuration in the DESCRIPTION field on the right side of the screen. The ABOUT section contains a brief description of the setting.
Note: When there is an unsaved change in the setting, an orange dot appears next to the Monitoring (APM) option in the left menu.
3. Fill Out the Elastic APM Settings Window
When you click the ADD NEW link while Elastic APM is selected in the Provider field, the Elastic APM Settings window opens.
Basic Fields
In the Elastic APM Settings window that opens, fill in the following fields:
Name (required): A descriptive name for the configuration.
Server URL (required): The Elastic APM Server address (e.g., https://your-apm-server:8200).
Service Name (required): The name of the service to be monitored in Elastic APM. Used to distinguish between services in the Elastic APM interface.
Secret Token: The security token provided by the Elastic APM Server.
Environment: The environment in which the application runs (e.g., production, staging, development).
Enable Frontend Tracing: A toggle that enables tracing of operations occurring on the application’s front end (on the browser side).
Advanced Settings (Optional)
Click the ADVANCED section to expand it and control transaction, error, and performance tracing details. The fields are pre-filled with default values. You can leave any fields you do not wish to change as they are.
The TRANSACTION/SPAN SETTINGS section determines how transactions and spans are traced in the application:
Transaction Sample Rate: The rate at which transactions are traced. A value of 1 ensures that all transactions are monitored (default: 1).
Span Frames Min Duration (ms): The minimum duration required to capture a stack trace for a span (default: 5).
Capture Body: Whether to record request and response body information (default: Off).
Transaction Max Spans: The maximum number of spans that can be recorded within a single transaction (default: 500).
The ERROR/LOGGING SETTINGS section defines error logging and logging details:
Log Level: The log level to be sent to Elastic APM (default: Info).
Stack Trace Limit: The maximum number of stack trace lines to capture when an error occurs (default: 50).
The PERFORMANCE SETTINGS section defines the frequency and scope of performance metric collection:
Metrics Interval (seconds): The interval at which system and application metrics are sent to Elastic APM (default: 30 seconds).
Capture Headers: A toggle that enables the recording of HTTP request and response header information (default: on). When enabled, you can perform header-based analysis through Elastic APM.•
After entering the information, click the CREATE button to create the configuration.
4. Fill Out the OpenTelemetry Settings Window
When OpenTelemetry (OTLP) is selected in the Provider field and you click the ADD NEW link, the OpenTelemetry Settings window opens. This configuration enables the created backend to send trace data via OTLP to Grafana Tempo, OpenTelemetry Collector, Jaeger, or another OTLP-supported receiver.
Note: If OTEL_* environment variables with the same names are defined in the running application, these variables will override the values entered in the window.
Basic Fields
Name (required): An identifier for the configuration.
Endpoint (required): The base address of the OTLP receiver (e.g., http://otel-collector:4318).
Protocol: The OTLP protocol used to send data (default: HTTP/protobuf). By default, OTLP receivers listen on port 4318 for HTTP and port 4317 for gRPC; make sure the port in the Endpoint matches the protocol you selected.
Service Name (required): The name of the service to be monitored. Used on the receiver side to distinguish between services.
Environment: The environment in which the application runs (e.g., production, staging, development).
Advanced Settings (Optional)
Click the ADVANCED section to expand it. Numeric fields are pre-filled with default values; you can leave any fields you do not wish to change as they are.
Headers: Additional headers to be included with each request (e.g., tenant ID or API key).