CockroachDB
Supported Platforms
Linux
✓
✓
Windows
✓
✓
macOS
✓
✓
Configuration Table
telemetry_types
telemetrySelector
["Logs", "Metrics"]
Choose Telemetry Type.
hostname*
string
"localhost"
The hostname or IP address of the CockroachDB system. Required: true.
password
string
""
The password to use when connecting to CockroachDB. TLS must be configured in the Advanced section if this field is set. Sensitive: true. Read more
enable_tls
bool
false
Whether or not to use TLS.
ca_file_path
string
""
File path for CA certification file for CockroachDB (only needed if you have a secure cluster). Read more
cert_file_path
string
""
A TLS certificate used for client authentication, if mutual TLS is enabled. Read more
key_file_path
string
""
A TLS private key used for client authentication, if mutual TLS is enabled. Read more
insecure_skip_verify
bool
false
Disable validation of the server certificate.
collection_interval
int
60
How often (seconds) to scrape for metrics.
health_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-health.log"]
The absolute path to the CockroachDB health logs.
dev_log_path*
strings
["/var/log/cockroach-data/logs/cockroach.log"]
The absolute path to the CockroachDB Dev Logs.
enable_error_log*
bool
true
Enable to collect stderr logs.
error_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-stderr.log"]
The absolute path to the CockroachDB stderr logs.
sql_schema_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-sql-schema.log"]
The absolute path to the CockroachDB sql schema logs.
telemetry_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-telemetry.log"]
The absolute path to the CockroachDB telemetry logs.
kv_distribution_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-kv-distribution.log"]
The absolute path to the CockroachDB kv distribution logs.
pebble_log_path*
strings
["/var/log/cockroach-data/logs/cockroach-pebble.log"]
The absolute path to the CockroachDB pebble logs.
offset_storage_dir*
string
"$OIQ_OTEL_COLLECTOR_HOME/storage"
The directory the offset storage file will be created in.
timezone*
timezone
"UTC"
The timezone to use when parsing timestamps.
start_at*
enum
end
Start reading logs from 'beginning' or 'end'.
parse_to*
enum
body
Parse structured log parts to either body or attributes.
retain_raw_logs*
bool
false
Preserve the original log message in a raw_log key.
*required field
Example Configuration
This configuration shows the default values for the CockroachDB Source.



Last updated
Was this helpful?