-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding openobserve as a sink connector
- Loading branch information
Chaitanya Sistla
authored and
Chaitanya Sistla
committed
Oct 17, 2024
1 parent
dfaabf7
commit 033eb36
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
website/cue/reference/components/sinks/base/openobserve.cue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package metadata | ||
|
||
base: components: sinks: openobserve: configuration: { | ||
type: "http" | ||
inputs: ["source_or_transform_id"] | ||
uri: { | ||
description: "The OpenObserve endpoint to send data to." | ||
required: true | ||
type: string: examples: ["http://localhost:5080/api/default/default/_json"] | ||
} | ||
method: { | ||
description: "The HTTP method to use for the request." | ||
required: true | ||
type: string: default: "post" | ||
} | ||
auth: { | ||
description: "Authentication for OpenObserve." | ||
required: true | ||
type: object: options: { | ||
strategy: { | ||
description: "The authentication strategy." | ||
required: true | ||
type: string: default: "basic" | ||
} | ||
user: { | ||
description: "The username for basic authentication." | ||
required: true | ||
type: string: examples: ["[email protected]"] | ||
} | ||
password: { | ||
description: "The password for basic authentication." | ||
required: true | ||
type: string: examples: ["v9Ca7qHaMKELlDtU"] | ||
} | ||
} | ||
} | ||
compression: { | ||
description: "The compression algorithm to use." | ||
required: true | ||
type: string: default: "gzip" | ||
} | ||
encoding: { | ||
codec: { | ||
description: "The encoding format to use for the request body." | ||
required: true | ||
type: string: default: "json" | ||
} | ||
timestamp_format: { | ||
description: "The format for encoding timestamps." | ||
required: true | ||
type: string: default: "rfc3339" | ||
} | ||
} | ||
healthcheck: { | ||
enabled: { | ||
description: "Enables or disables the health check." | ||
required: true | ||
type: bool: default: false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package metadata | ||
|
||
components: sinks: openobserve: { | ||
title: "OpenObserve" | ||
|
||
features: { | ||
healthcheck: { | ||
enabled: false | ||
} | ||
send: { | ||
compression: { | ||
enabled: true | ||
default: "gzip" | ||
} | ||
encoding: { | ||
enabled: true | ||
codec: { | ||
enabled: true | ||
default: "json" | ||
} | ||
timestamp_format: { | ||
enabled: true | ||
default: "rfc3339" | ||
} | ||
} | ||
} | ||
} | ||
|
||
configuration: { | ||
type: "http" | ||
inputs: ["source_or_transform_id"] | ||
uri: { | ||
description: "The OpenObserve endpoint to send data to." | ||
required: true | ||
type: string: default: "http://localhost:5080/api/default/default/_json" | ||
} | ||
method: { | ||
description: "The HTTP method to use." | ||
required: true | ||
type: string: default: "post" | ||
} | ||
auth: { | ||
strategy: { | ||
description: "The authentication strategy." | ||
required: true | ||
type: string: default: "basic" | ||
} | ||
user: { | ||
description: "The username for basic authentication." | ||
required: true | ||
type: string: default: "[email protected]" | ||
} | ||
password: { | ||
description: "The password for basic authentication." | ||
required: true | ||
type: string: default: "your_ingestion_password" | ||
} | ||
} | ||
} | ||
} |