OpenTelemetry ingestion configuration options
The OpenTelemetry Protocol (OTLP) metric data model defines separate Resource and Data Point attribute contexts.- The Resource context contains
attributes, such as
host.nameork8s.cluster.name, that are common to all time series produced by the metric writer. - The Data Point context contains attributes unique to the time series, such as
http.route.
- Prevent Observability Platform from merging resource attributes.
- Enable the creation and writing of a
target_infometric using all resource attributes. Thetarget_infometric is functionally equivalent to theupmetric, the presence of which indicates that a resource is available. - Change how Observability Platform handles conflicts when merging Resource and Data Point attributes.
- Define an exclusion list of resource attribute keys to exclude from merging.
Resource attribute configuration options
The OpenTelemetry Metrics Ingestion configuration has a top-levelresource_attributes
field with additional sub-fields that define how Observability Platform processes
resource attributes.
| Field | Type | Description | Default value |
|---|---|---|---|
resource_attributes | N/A | Top-level configuration field | N/A |
generate_target_info | Boolean | Determines whether to create a target_info metric. | False |
flatten_mode | Enumeration | Determines how Observability Platform merges resource attributes into the time series. | MERGE |
filter_mode | Enumeration | Determines which resource attributes Observability Platform processes when generating target_info and merging resource attributes into time series as labels. | APPEND_DEFAULT_EXCLUDE_KEYS |
exclude_keys | String array | Key names to exclude from both target_info generation and resource attribute merging. | Default list |
flatten_mode
The flatten_mode field determines how Observability Platform merges resource attributes
into the time series. Its valid values are:
MERGE(default): Observability Platform merges Resource attributes into every data point associated with that resource, so that both sets end up as Prometheus labels on each individual metric time series. If attribute keys conflict, Observability Platform uses the value from the data point.IGNORE: Observability Platform doesn’t copy resource attributes to the resulting time series.OVERWRITE: Observability Platform copies resource attributes onto every data point. If attribute keys conflict, Observability Platform uses the value from the resource.
filter_mode
The filter_mode field determines which resource attributes Observability Platform
processes when generating target_info metrics and merging resource attributes
into time series as labels. Its valid values are:
-
APPEND_DEFAULT_EXCLUDE_KEYS(default): Observability Platform includes all attributes unless they’re defined in yourexclude_keyslist or the default Observability Platform-defined resource attribute exclusions list. With this setting, Observability Platform appends anyexclude_keysyou define to the default Observability Platform-defined list. -
CUSTOM_EXCLUDE_KEYS: Observability Platform includes all attributes unless they’re specifically defined in yourexclude_keyslist. With this setting, Observability Platform applies only your definedexclude_keyslist.
exclude_keys
Use the exclude_keys field to list key names that you want Observability Platform
to exclude from both target_info generation and resource attribute merging.
The field’s format is an array of strings, such as:
Observability Platform-defined resource attribute exclusions
Some OpenTelemetry Resource attributes are likely to exceed Observability Platform attribute value size limits, resulting in rejected time series. Observability Platform excludes the following Resource attributes by default:| Rejected key | Reason |
|---|---|
process.command_args | Commonly exceeds the maximum attribute value length. |
process.command_line | Commonly exceeds the maximum attribute value length. |
filter_mode = CUSTOM_EXCLUDE_KEYS.
Manage OpenTelemetry metrics ingestion configurations
The Chronosphere API Config Endpoint provides methods to create, read, update, and delete the OpenTelemetry Metrics Configuration.View the configuration
You can view OTLP ingestion configurations using one of the following methods.- Chronoctl
- API
Use the The command returns a YAML definition of the
read command of Chronoctl:OtelMetricsIngestion resource. If
the command returns an HTTP 404 Not Found status code, your tenant uses the default configuration.Create or update the configuration
You can change the default OpenTelemetry Metrics ingestion configuration using either Chronoctl or the Terraform provider.- Chronoctl
- Terraform
- API
Use the The following example enables Add the contents to a YAML file and send it to Observability Platform with the
You can also use the Replace
scaffold command to generate an example OtelMetricsIngestion resource.target_info metric generation and defines two additional
resource attribute key names to exclude.apply command:otel-metrics-ingest create subcommand to create the resource,
or the otel-metrics-ingest update subcommand to update an existing resource:<FILE_NAME.YML> with the filename of the YAML file containing the resource
definition.Delete the configuration
Use one of the following methods to delete an OpenTelemetry configuration.- Chronoctl
- API
You can use Chronoctl to delete your OpenTelemetry Metrics ingestion
configuration and restore the default configuration.Use the If the command fails because of a missing slug, use the
delete command to delete the configuration.read command to view the
resource’s slug.