Kafka
Use the Prometheus remote write exporting connector to archive your Netdata metrics to the external storage provider of your choice for long-term storage and further analysis.
Limitations
The remote write exporting connector does not support buffer on failures.
Setup
Prerequisites
- Netdata and the external storage provider of your choice, installed, configured and operational.
protobuf
andsnappy
libraries installed.- Netdata reinstalled after the libraries.
Configuration
File
The configuration file name for this integration is exporting.conf
.
You can edit the configuration file using the edit-config
script from the
Netdata config directory.
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config exporting.conf
Options
The following options can be defined for this exporter.
Config options
Name | Description | Default | Required |
---|---|---|---|
enabled | Enables or disables an exporting connector instance (yes/no). | no | yes |
destination | Accepts a space separated list of hostnames, IPs (IPv4 and IPv6) and ports to connect to. Netdata will use the first available to send the metrics. | no | yes |
username | Username for HTTP authentication | my_username | no |
password | Password for HTTP authentication | my_password | no |
data source | Selects the kind of data that will be sent to the external database. (as collected/average/sum) | no | |
hostname | The hostname to be used for sending data to the external database server. | [global].hostname | no |
prefix | The prefix to add to all metrics. | netdata | no |
update every | Frequency of sending sending data to the external database, in seconds. | 10 | no |
buffer on failures | The number of iterations (update every seconds) to buffer data, when the external database server is not available. | 10 | no |
timeout ms | The timeout in milliseconds to wait for the external database server to process the data. | 20000 | no |
send hosts matching | Hosts filter. Determines which hosts will be sent to the external database. The syntax is simple patterns. | localhost * | no |
send charts matching | One or more space separated patterns (use * as wildcard) checked against both chart id and chart name. | * | no |
send names instead of ids | Controls the metric names Netdata should send to the external database (yes/no). | no | |
send configured labels | Controls if host labels defined in the [host labels] section in netdata.conf should be sent to the external database (yes/no). | no | |
send automatic labels | Controls if automatically created labels, like _os_name or _architecture should be sent to the external database (yes/no). | no |