Skip to content

Instantly share code, notes, and snippets.

@xeioex
Created January 14, 2026 05:46
Show Gist options
  • Select an option

  • Save xeioex/2064a97fd96c84a1382264f045a3d4dc to your computer and use it in GitHub Desktop.

Select an option

Save xeioex/2064a97fd96c84a1382264f045a3d4dc to your computer and use it in GitHub Desktop.
Usage:
otelcol-contrib [flags]
otelcol-contrib [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
components Outputs available components in this collector distribution
featuregate Display feature gates information
help Help about any command
print-config Prints the Collector's configuration in the specified mode
validate Validates the config without running the collector
Flags:
--config --config=file:/path/to/first --config=file:path/to/second Locations to the config file(s), note that only a single location can be set per flag entry e.g. --config=file:/path/to/first --config=file:path/to/second. (default [])
--feature-gates flag Comma-delimited list of feature gate identifiers. Prefix with '-' to disable the feature. '+' or no prefix will enable the feature. (default -awsemf.nodimrollupdefault,-clickhouse.json,cloudfoundry.resourceAttributes.allow,confighttp.framedSnappy,configoptional.AddEnabledField,-confmap.enableMergeAppendOption,connector.datadogconnector.NativeIngest,-connector.servicegraph.legacyLatencyMetricNames,-connector.servicegraph.legacyLatencyUnitMs,connector.servicegraph.virtualNode,-connector.spanmetrics.excludeResourceMetrics,-connector.spanmetrics.includeCollectorInstanceID,-connector.spanmetrics.legacyMetricNames,-connector.spanmetrics.useSecondAsDefaultMetricsUnit,datadog.EnableOperationAndResourceNameV2,datadog.EnableReceiveResourceSpansV2,exporter.PersistRequestContext,exporter.awsxray.skiptimestampvalidation,exporter.datadogexporter.DisableAPMStats,-exporter.datadogexporter.EnableAttributeSliceMultiTagExporting,-exporter.datadogexporter.InferIntervalForDeltaMetrics,-exporter.datadogexporter.TraceExportUseCustomHTTPClient,exporter.datadogexporter.UseLogsAgentExporter,exporter.datadogexporter.metricexportnativeclient,exporter.datadogexporter.metricexportserializerclient,-exporter.datadogexporter.metricremappingdisabled,-exporter.googlecloud.CustomMonitoredResources,-exporter.googlemanagedprometheus.intToDouble,exporter.kafkaexporter.UseFranzGo,-exporter.prometheusexporter.DisableAddMetricSuffixes,-exporter.prometheusremotewritexporter.EnableMultipleWorkers,-exporter.prometheusremotewritexporter.RetryOn429,-exporter.prometheusremotewritexporter.enableSendingRW2,exporter.xray.allowDot,-extension.awslogsencoding.vpcflow.start.iso8601,-extension.healthcheck.useComponentStatus,extension.jaegerremotesampling.replaceThriftWithProto,-extension.sumologic.updateCollectorMetadata,-filelog.allowFileDeletion,filelog.allowHeaderMetadataParsing,filelog.decompressFingerprint,-filelog.mtimeSortType,-filelog.windows.caseInsensitive,-filter.filterlog.useOTTLBridge,-filter.filtermetric.useOTTLBridge,-filter.filterspan.useOTTLBridge,hostmetrics.process.bootTimeCache,-k8sattr.labelsAnnotationsSingular.allow,logs.assignKeys,logs.jsonParserArray,-metricsgeneration.MatchAttributes,otelcol.printInitialConfig,ottl.PanicDuplicateName,-parser.uri.ecscompliant,pdata.enableRefCounting,pdata.useCustomProtoEncoding,-pdata.useProtoPooling,pkg.translator.prometheus.NormalizeName,-pkg.translator.prometheus.PermissiveLabelSanitization,postgresqlreceiver.preciselagmetrics,processor.resourcedetection.propagateerrors,processor.resourcedetection.removeGCPFaasID,-processor.tailsamplingprocessor.disableinvertdecisions,-processor.tailsamplingprocessor.metricstatcountspanssampled,-processor.tailsamplingprocessor.recordpolicy,processor.transform.ConvertBetweenSumAndGaugeMetricContext,-receiver.awscontainerinsightreceiver.useNewTypeName,receiver.azureeventhubreceiver.UseAzeventhubs,-receiver.datadogreceiver.Enable128BitTraceID,-receiver.datadogreceiver.EnableMultiTagParsing,receiver.hostmetricsreceiver.UseLinuxMemAvailable,receiver.jaeger.DisableRemoteSampling,-receiver.kafkametricsreceiver.UseFranzGo,receiver.kafkareceiver.UseFranzGo,receiver.mongodb.removeDatabaseAttr,receiver.postgresql.connectionPool,-receiver.postgresql.separateSchemaAttr,-receiver.prometheusreceiver.EnableCreatedTimestampZeroIngestion,receiver.prometheusreceiver.EnableNativeHistograms,-receiver.prometheusreceiver.EnableReportExtraScrapeMetrics,receiver.prometheusreceiver.RemoveLegacyResourceAttributes,-receiver.prometheusreceiver.RemoveReportExtraScrapeMetricsConfig,receiver.prometheusreceiver.RemoveStartTimeAdjustment,-receiver.prometheusreceiver.UseCreatedMetric,-receiver.sqlserver.RemoveServerResourceAttribute,-receiver.vcenter.resourcePoolMemoryUsageAttribute,-receiverhelper.newReceiverMetrics,-service.AllowNoPipelines,-service.noopTracerProvider,-service.profilesSupport,-spanmetrics.statusCodeConvention.useOtelPrefix,-stanza.synchronousLogEmitter,telemetry.UseLocalHostAsDefaultMetricsAddress,-telemetry.disableHighCardinalityMetrics,-telemetry.newPipelineTelemetry,-transform.flatten.logs)
-h, --help help for otelcol-contrib
--set value Set arbitrary component config property. The component has to be defined in the config file and the flag has a higher precedence. Array config properties are overridden and maps are joined. Example --set=processors.batch.timeout=2s
-v, --version version for otelcol-contrib
Use "otelcol-contrib [command] --help" for more information about a command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment