Lightrun Driver
Name: lightrun-java
The Lightrun Nomad driver is used to execute Java applications packaged into a Java Jar file and automatically add the Lightrun agent to them.
Lightrun is a developer-native observability platform. With Lightrun you can add logs, snapshots (virtual breakpoints), and metrics to production applications without the need for redeployments or restarts. You can use Lightrun directly from your IDE or CLI to observe, understand and debug your application at runtime.
Refer to the Lightrun documentation for more information about Lightrun.
Prerequisites
Download or clone the Lightrun driver repository.
Find the
lightrun-java-driver
driver in the repository's root folder.Copy the driver to your Nomad plugins directory (or create one if it doesn't exist).
Grant executable permissions to the driver file:
When running the Nomad agent, make sure to specify the path to your plugins directory:
Task Configuration
The lightrun-java
driver accepts all configuration options of the Nomad
java
driver.
Additionally, the lightrun-java
driver requires the following configuration in
the job spec. To find these configurations, log into the
Lightrun Management Portal and refer to the Download the
Agent section:
lightrun_server
- The Lightrun server you are working against, including your company name.lightrun_secret
- Lightrun secret is used for authorization against the Lightrun server.lightrun_certificate
- Used for certificate pinning.
A full job file example can be found in the repo at example/example.driver.nomad
.