Integrations is in public preview and may change. This page documents the extractor-side configuration for Integrations. For the API that stores and versions the application configuration, see Configuration.
Connection configuration file
The connection configuration file must be YAML or JSON. Pass it to the extractor with the-c/--connection-config command-line option. All keys use kebab-case.
Base connection object
The following parameters sit at the root of the connection configuration.integration
This object identifies the integration the extractor reports to.
authentication
The extractor supports two authentication types, selected with the type key. These parameters are common to both types.
If
type is client-credentials, these parameters apply.
If
type is client-certificate, these parameters apply.
connection
Use these optional settings to control retries and SSL verification for requests to CDF.
retries
These parameters control how the extractor retries failed requests.
ssl-certificates
These parameters control certificate verification.
Time interval format
Settings that accept a time interval, such asmax-backoff and timeout, use a string with a number followed by a unit: s (seconds), m (minutes), h (hours), or d (days). Examples are 30s and 5m. A plain number without a unit is interpreted as seconds.
Environment variables
Instead of a connection configuration file, an extractor can read its connection settings from environment variables.Set
COGNITE_CLIENT_SECRET to authenticate with client credentials, or COGNITE_CLIENT_CERTIFICATE_PATH to authenticate with a client certificate. The extractor picks the authentication method based on which of these two variables is set.Application configuration
The application configuration holds settings specific to what the extractor does, such as which queries or tags to run. Every extractor that reports to Integrations also supports the following common settings.
By default, the extractor fetches the active revision of the application configuration from the integration’s configuration revisions. Use
-f/--force-local-config to load the application configuration from a local file instead. See Command line options.
state-store
This object controls where the extractor persists its state between runs.
If
type is raw, these parameters apply.
If
type is local, these parameters apply.
metrics
You can send metrics to a Prometheus push gateway, to CDF as time series, or to a local Prometheus endpoint.
push-gateways
Each list item is a Prometheus push gateway.
cognite
These parameters control metrics stored as CDF time series.
server
These parameters expose a local Prometheus endpoint.
log-handlers
log-handlers is a list of one or more log handlers. Select each handler with the type key.
If type is console, these parameters apply.
If
type is file, these parameters apply.