Skip to content

Commit

Permalink
don't log mongo to OO (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso authored Nov 20, 2024
2 parents d4c2d24 + d5fdcd9 commit 711e49d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions docker/images/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,36 +130,6 @@ encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false

[sources.mongo]
type = "docker_logs"
include_labels = ["vector.mongo=true"]

[transforms.mongo_format]
type = "remap"
inputs = ["mongo"]
source = '''
.=parse_json!(string!(.message))
.host="$OO_HOST"
del(.t)
del(.id)
del(.timestamp)
del(._timestamp)
'''

# send to openobserve
[sinks.openobserve_mongo]
type = "http"
inputs = ["mongo_format"]
uri = "https://api.openobserve.ai/api/$OO_ORG/${NODE_ENV}_provider_mongo/_json"
method = "post"
auth.strategy = "basic"
auth.user = "$OO_USERNAME"
auth.password = "$OO_PASSWORD"
compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false

[sources.watchtower]
type = "docker_logs"
include_labels = ["vector.watchtower=true"]
Expand Down

0 comments on commit 711e49d

Please sign in to comment.