Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This topic explains best practices for monitoring the Relay Proxy as it runs, as well as information about exporting metrics and other data.Using the Relay Proxy’s status resource
The Relay Proxy exposes a status resource containing details about its health. To learn about the status resource, read the Relay Proxy GitHub repository’s Status (health check).Validating your Relay Proxy configuration
Fluctuating network conditions can cause a temporary loss of connection. The Relay proxy is self-healing and will re-establish connectivity with LaunchDarkly automatically. You can check your Relay Proxy configuration using status requests and flag evaluation tests.Status requests
You can make aGET request to the /status URL path for information about the Relay Proxy’s configured environments. There is no authentication required for this request.
Here’s how:
Testing feature flag evaluations
If your environment configurations are valid, you can check your connection by evaluating a feature flag. Here’s how to test your connection and evaluate a flag:- Start your SDK. If the SDK connects successfully, the Relay Proxy is working.
- In the LaunchDarkly user interface (UI), change the value of a feature flag so you will receive a different variation in production.
- Verify in your application that the flag value has changed.
curl. You must specify your Relay Proxy base URI, SDK key, and evaluation context in the command.
Here’s how:
Testing Relay Proxy performance
Load tests designed to measure the Relay Proxy’s performance under load should initialize LaunchDarkly client instances and connect them to your Relay Proxy hardware. We developed a load testing framework for the Relay Proxy based on Locust. You can find it on in the LaunchDarkly Labs GitHub repository. Locust tests events, client-side SDKs, and server-side SDKs. Locust’s internal nomenclature uses the term “users” to refer to simulated SDKs. Do not mistake Locust’s “users” with LaunchDarkly’s user contexts. They are not the same thing. The Relay Proxy instance you test against should be:- Deployed on the same type of hardware you intend to use for your production deployment
- Configured to manage LaunchDarkly environments comparable to production
Monitoring Relay Proxy performance
When the Relay Proxy is running, you can monitor performance by tracking the following statistics:- Overall memory utilization
- CPU utilization
- Number of requests coming into the Relay Proxy