Skip to content

Commit

Permalink
adding openobserve as a sink connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitanya Sistla authored and Chaitanya Sistla committed Oct 17, 2024
1 parent dfaabf7 commit 033eb36
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ sinks-logs = [
"sinks-new_relic",
"sinks-papertrail",
"sinks-pulsar",
"sinks-openobserve",
"sinks-redis",
"sinks-sematext",
"sinks-socket",
Expand Down
61 changes: 61 additions & 0 deletions website/cue/reference/components/sinks/base/openobserve.cue
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
}
}
}
60 changes: 60 additions & 0 deletions website/cue/reference/components/sinks/openobserve.cue
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"
}
}
}
}

0 comments on commit 033eb36

Please sign in to comment.