Configuring Fluent-Bit to Support Grafana Cloud
You can configure Fluent-Bit to send logs to Grafana Cloud.
configure
logging grafana-cloud host grafana_cloud_host
logging grafana-cloud port grafana_cloud_port
logging grafana-cloud http-user http_user
logging grafana-cloud http-password http_password
To configure Fluent HTTP proxy, use the following configuration:
configure
logging proxy http-proxy proxy_url
logging proxy https-proxy proxy_url
logging proxy no-proxy comma_seperated_url
NOTES:
-
logging grafana-cloud host grafana_cloud_host —Specify the host logs.
-
logging grafana-cloud port grafana_cloud_port —Specify the host port. The default port is set to 443.
-
logging grafana-cloud http-user http_user —Specify the HTTP user information.
-
logging grafana-cloud http-password http_password —Specify the HTTP user password.
-
logging proxy http-proxy proxy_url —Specify the HTTP proxy URL.
-
logging proxy https-proxy proxy_url —Specify the HTTPS proxy URL.
-
logging proxy no-proxy comma_seperated_url —Specify the comma-separated domain name.
Labels and Label Keys
To configure the label, use the following configuration:
configure
logging grafana-cloud labels key value
exit
To configure the label keys, use the following configuration:
configure
logging grafana-cloud labels-keys [ $KEY1,$KEY2 ]
NOTES:
-
By default, the labels for the stream are set to job=fluent-bit, log_source=cndp, hostname={nodeName}.
-
You can configure K8s label keys for the log stream such as container name ($k8s_container_name) and namespace ($k8s_namespace_name). The label keys must start with $.