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.Documentation Index
Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
Use this file to discover all available pages before exploring further.
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 KubernetesSecret to authenticate
with the Collector.
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.- Download one of the platform-specific binaries:
-
Modify the permissions on the binary to make it executable. For example,
to change permissions on the
linux-amd64version 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 thelistenAddress, set an
environment variable named ${LISTEN_ADDRESS} with the value you want to use, such
as:
-
Backend: You must add a
gatewaybackend to specify your Chronosphere instance. -
Global Labels: If you don’t need to apply global labels to all metrics, remove
the
labelskey. If you need global labels and are scraping metrics from a Prometheus endpoint, you can apply labels to each scrape target. For example, to addhostandrackto 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 withv.
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:-
Create a
chronocollectoruser and group: -
Change the ownership of the directory containing the Collector configuration file.
The following command expects the Collector
config.ymlfile in the/etc/chronocollectordirectory: -
Copy the Collector binary to the
/usr/bindirectory and modify the permissions: -
In the
/usr/lib/systemd/systemdirectory, create and define a script such aschronocollector.servicefor the Collector service: -
Change the permissions of the
chronocollector.servicescript you created: -
Enable and verify the
chronocollectorservice:

