This example shows a setup for running a prometheus OpenTelemetry Collector in a docker container to scrape metrics from your SingleStore environment and post them the New Relic OTLP Collector Endpoint.
TODO: add link to doc site when available
- You must have a Docker daemon running.
- You must have Docker compose installed.
- You must have a SingleStore workspace running.
First, set your environment variables in the .env
file in this directory. For more information on the individual variables, reference the docs available below.
Once the variables are set, run the following command from the root directory to start the collector.
cd ./other-examples/collector/singlstore
docker compose up
Variable | Description | Docs |
---|---|---|
NEW_RELIC_API_KEY | New Relic Ingest API Key | API Key docs |
NEW_RELIC_OTLP_ENDPOINT | Default US OTLP endpoint is https://otlp.nr-data.net |
OTLP endpoint config docs |
SINGLESTORE_ORG | ID of your SingleStore Organization | SingleStore Organization docs |
SINGLESTORE_WORKSPACE_GROUP | ID of your SingleStore Workspace Group | SingleStore workspace docs |
SINGLESTORE_API_KEY | SingleStore API Key | SingleStore API Key docs |