Windows Service Deployment


In Windows environments, Jaeger processes can be hosted and managed as Windows services controlled via the sc utility. To configure such services on Windows, download nssm.exe for the appropriate architecture, and issue commands similar to how Jaeger is typically run. The example below showcases a basic Elasticsearch setup, configured using both environment variables and process arguments.

Agent

  1. nssm install JaegerAgent C:\Jaeger\jaeger-agent.exe --reporter.grpc.host-port=localhost:14250
  2. nssm set JaegerAgent AppStdout C:\Jaeger\jaeger-agent.out.log
  3. nssm set JaegerAgent AppStderr C:\Jaeger\jaeger-agent.err.log
  4. nssm set JaegerAgent Description Jaeger Agent service
  5. nssm start JaegerAgent

Collector

  1. nssm install JaegerCollector C:\Jaeger\jaeger-collector.exe --es.server-urls=http://localhost:9200 --es.username=jaeger --es.password=PASSWORD
  2. nssm set JaegerCollector AppStdout C:\Jaeger\jaeger-collector.out.log
  3. nssm set JaegerCollector AppStderr C:\Jaeger\jaeger-collector.err.log
  4. nssm set JaegerCollector Description Jaeger Collector service
  5. nssm set JaegerCollector AppEnvironmentExtra SPAN_STORAGE_TYPE=elasticsearch
  6. nssm start JaegerCollector

Query UI

  1. nssm install JaegerUI C:\Jaeger\jaeger-query.exe --es.server-urls=http://localhost:9200 --es.username=jaeger --es.password=PASSWORD
  2. nssm set JaegerUI AppStdout C:\Jaeger\jaeger-ui.out.log
  3. nssm set JaegerUI AppStderr C:\Jaeger\jaeger-ui.err.log
  4. nssm set JaegerUI Description Jaeger Query service
  5. nssm set JaegerUI AppEnvironmentExtra SPAN_STORAGE_TYPE=elasticsearch
  6. nssm start JaegerUI

For additional information & docs, please see the NSSM usage guide.