Windows deployment
You can monitor a Groundplex running on Windows with Datadog, New Relic, or any observability tool that supports OpenTelemetry (OTel).
You can monitor a Groundplex running on Windows with Datadog, New Relic, or any observability tool that supports OpenTelemetry (OTel). This requires deployment of an OTel collector to gather the metrics and the logs that Groundplex nodes generate.
Prerequisites:
- Find out what your observability tool requires for configuration. For example, Datadog and New Relic need an API key.
- Have a few example pipelines available to run on the Groundplex and generate events to view in your tool.
Install the OTel collector
Download and install the OTel collector:
- Open the OTel collector GitHub page.
- On each Windows Server that hosts a Groundplex node, download the appropriate v0.115.X Windows otelcol-contrib .msi installation package.
- Install the OTel collector by running the .msi package.
- Create a config.yaml file and configure as required by your third-party tool. The sections below provide details for Datadog and New Relic. You can use the example YAML files as starting points.
- Follow the steps to Configure the firewall and start the OTel collector.
Configure the Datadog YAML file
Obtain your Datadog API key and add it to a .yaml file:
- Log in to your Datadog account.
- Navigate to the Organization settings.
- Click the API keys tab.
- Copy the API key and save it.
- Create a config.yml file in the C:\Program Files\OpenTelemetry
Collector folder with the following properties:
receivers: otlp: protocols: grpc: http: processors: batch: send_batch_max_size: 100 send_batch_size: 10 timeout: 10s attributes: actions: - key: snaplex.node.name value: <node_name> action: upsert exporters: data dog: api: site: <datadog_site> key: <DD_api_key> logging: verbosity: service: pipeline: logs: receivers: processors: exporters: metrics: receivers: processors: exporters:
- Replace the properties in brackets with your values for the Groundplex node name, Datadog site, and Datadog API key.
- Save the file.
- Skip to: Configure the firewall and start the OTel collector.
Configure the New Relic YAML file
Create a New Relic API key and add it to a config.yaml file:
- To create an API key:
- Log in to the New Relic portal and click your username at the bottom of the left navigation pane.
- From the menu, select API keys.
- Click Create a key.
- For Key type, select Ingest - License.
- Click Create a key.
- Click Copy.
- Save the key in a secure location for later use.
- Create a config.yml file in the C:\Program Files\OpenTelemetry
Collector folder by copying the following:
extensions: health_check: pprof: endpoint: 0.0.0.0:1777 zpages: endpoint: 0.0.0.0:55679 receivers: otlp: protocols: grpc: http: opencensus: jaeger: protocols: grpc: thrift_binary: thrift_compact: thrift_http: zipkin: processors: batch: end_batch_max_size: 100 send_batch_size: 10 timeout: 10s attributes: actions: - key: snaplex.node.name value: <node_name> action: upsert exporters: otlp: endpoint: https://otlp.nr-data.net:4317 headers: api-key: <NEW RELIC LICENSE API KEY> logging: verbosity: detailed service: pipelines: traces: receivers: [otlp, opencensus, jaeger, zipkin] processors: [batch] exporters: [logging] metrics: receivers: [otlp, opencensus] processors: [batch] exporters: [otlp, logging] logs: receivers: [otlp] processors: [batch] exporters: [otlp, logging] extensions: [health_check, pprof, zpages]
- Replace the values in brackets with the values for your environment.
- Save the file.
- Configure the firewall and start the OTel collector as described in the next section.
Configure the firewall and start the OTel collector
After saving the config.yaml file:
- On each Windows Server, configure the Windows Defender Firewall to open ports
4317
,4318
, and any ports required for additional exporters. - On each Windows Server, open the Services app from the Control Panel Administrative Tools group.
- If
otelcol-contrib.exe
is running, stop it. - From the command line, run the following command with administrator privileges:
C:\Program Files\OpenTelemetry Collector>otelcol-contrib.exe --config config.yaml
- Check the command window for the status.
- Run a few pipelines and wait for the metrics to flow into your tool.
- Refer to Observe in Datadog and Observe in New Relic for metric examples and Node metric reference for the list of metrics you can collect.