Download and install Chronoctl
Select from the following methods to download and install the latest version of Chronoctl, based on your operating system.- macOS
- Linux
To download and install Chronoctl:
-
Use the
curlcommand to download Chronoctl for your system’s architecture:-
For Intel (64-bit x86) systems, run:
-
For Apple Silicon (M-series) systems, run:
arm64version. Replacearm64withamd64if you downloaded the Intel version of Chronoctl. -
For Intel (64-bit x86) systems, run:
-
Make the Chronoctl binary executable:
-
Move the binary into your
PATH:Ifchronoctlis already installed, this overwrites it with the new version. -
Ensure Chronoctl is successfully installed:
Download and install a v0.x.x version
Chronoctl versions prior to v1.0.0 implement some deprecated features removed in Chronoctl v1.0.0, such as:- The
sync prometheuscommand - The
convertcommands - YAML definitions that use
kind: v2
- macOS
- Linux
To download and install Chronoctl:
-
Use the
curlcommand to download Chronoctl for your system’s architecture:-
For Intel (64-bit x86) systems, run:
-
For Apple Silicon (M-series) systems, run:
arm64version. Replacearm64withamd64if you downloaded the Intel version of Chronoctl. -
For Intel (64-bit x86) systems, run:
-
Make the Chronoctl binary executable:
-
Move the binary into your
PATH: -
Ensure Chronoctl is successfully installed:
Authentication
Before you can use Chronoctl, you need both an API token and your organization’s name.API token
Chronoctl performs tasks that require administrative privileges, and requires an API token with administrative privileges to authenticate. How you use Chronoctl impacts the authentication mechanism for interacting with Observability Platform. You can use Chronoctl for local development, local administration, and production environments. Chronoctl accepts an API token as the--api-token argument, or as the contents
of a file specified as the argument of the --api-token-filename flag.
If you don’t provide a token as an argument, Chronoctl then looks for it in the
environment variable CHRONOSPHERE_API_TOKEN, which you can set by running the
following command or adding it to your shell profile:
TOKEN with the API token you generated to authenticate with Observability
Platform.
Local development
When using Chronoctl for local development, usechronoctl auth to
authenticate as your Observability Platform user.
You can use chronoctl auth print-session-id as the API-Token with any of the
Chronosphere API endpoints when developing or testing locally.
Local administration
To authenticate as an administrative user account for local administration, use a personal access token.Production environments
If you use Chronoctl in production environments as part of your continuous integration, or in scripts, use service accounts to authenticate with Observability Platform. Chronosphere recommends using either an unrestricted service account, or a user or service account that belongs to a team with the SysAdmin role.Organization name
Chronoctl needs the name of your team’s organization as the--org-name argument.
If you don’t provide your organization’s name as an argument, Chronoctl looks for
it in the environment variable CHRONOSPHERE_ORG_NAME.
To set this variable, run the following command or adding it to your shell profile:
NAME with the subdomain name you use to access Observability Platform.
For example, if your team uses example.chronosphere.io, your team’s organization
name is example.
To use Chronoctl after installing it, see the Overview.