Skip to main content
If you don’t use Kubernetes, or want to gather metrics from services not managed by Kubernetes, you can run the Collector as a standalone binary.

Create an API token

To interact with the Collector, you must create a service account. You must be a member of a team with the SysAdmin role to create a new service account. Chronosphere recommends creating a restricted service account with a write-only scope. Use the generated API token in your Kubernetes Secret to authenticate with the Collector.
Store your API token in a secure location. If you lose your token, you must create a new service account.

Download the Collector binary and make it executable

Chronosphere supports Chronosphere Collector versions for a year from release. You can find a full list of versions and release dates in the Collector release notes located in the Chronosphere Observability Platform. To view the release notes, in the navigation menu select More information > Release notes, and then click the Collector tab.
  1. Download one of the platform-specific binaries:
  2. Modify the permissions on the binary to make it executable. For example, to change permissions on the linux-amd64 version of the binary:

Define the Collector configuration file

Download the example configuration file and modify any configuration values based on your needs. For applicable fields, you can set environment variables instead of specifying them in the configuration file. For example, to specify the listenAddress, set an environment variable named ${LISTEN_ADDRESS} with the value you want to use, such as:
The following list includes key fields for which you can specify values:
  • Backend: You must add a gateway backend to specify your Chronosphere instance.
  • Global Labels: If you don’t need to apply global labels to all metrics, remove the labels key. If you need global labels and are scraping metrics from a Prometheus endpoint, you can apply labels to each scrape target. For example, to add host and rack to each metric:
    Each Prometheus scrape configuration type has a different way of specifying global labels. Refer to the Prometheus scrape configuration documentation for more details.
  • Discovery: To scrape a static Prometheus endpoint, configure a scrape setting. Refer to the Prometheus service discovery documentation for more details.

Run the Collector

You can run the Collector standalone with a binary, with Docker, or as a Systemd service. To run the Collector, pass the configuration file and generated API token. Replace the following values before running the startup commands:
  • VERSION: Version of the Collector that you want to run, prefixed with v.

Run standalone with a binary

Run standalone with Docker

Run standalone as a service

You can install the Collector as a Systemd service on Linux systems:
  1. Create a chronocollector user and group:
  2. Change the ownership of the directory containing the Collector configuration file. The following command expects the Collector config.yml file in the /etc/chronocollector directory:
  3. Copy the Collector binary to the /usr/bin directory and modify the permissions:
  4. In the /usr/lib/systemd/system directory, create and define a script such as chronocollector.service for the Collector service:
  5. Change the permissions of the chronocollector.service script you created:
  6. Enable and verify the chronocollector service: