File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,21 @@ otelcol.exporter.otlphttp "greptimedb_logs" {
7676}
7777
7878loki.write "greptime_loki" {
79- endpoint {
80- url = " ${GREPTIME_SCHEME:=http}://${GREPTIME_HOST:=greptimedb}:${GREPTIME_PORT:=4000}/v1/loki/api/v1/push"
81- headers = {
82- " x-greptime-db-name" = " ${GREPTIME_DB:=public}" ,
83- " x-greptime-log-table-name" = " ${GREPTIME_LOG_TABLE_NAME:=loki_demo_logs}" ,
84- }
79+ endpoint {
80+ url = " ${GREPTIME_SCHEME:=http}://${GREPTIME_HOST:=greptimedb}:${GREPTIME_PORT:=4000}/v1/loki/api/v1/push"
81+ headers = {
82+ " x-greptime-db-name" = " ${GREPTIME_DB:=public}" ,
83+ " x-greptime-log-table-name" = " ${GREPTIME_LOG_TABLE_NAME:=loki_demo_logs}" ,
8584 }
86- external_labels = {
87- " job " = " greptime " ,
88- " from " = " alloy " ,
85+ basic_auth {
86+ username = " ${GREPTIME_USERNAME} "
87+ password = " ${GREPTIME_PASSWORD} "
8988 }
89+ }
90+ external_labels = {
91+ " job" = " greptime" ,
92+ " from" = " alloy" ,
93+ }
9094}
9195
9296otelcol.auth.basic "credentials" {
You can’t perform that action at this time.
0 commit comments