From 968e660b36590fe9bd20c06af699a5ffaccdaeb7 Mon Sep 17 00:00:00 2001 From: Joe Sirianni Date: Wed, 30 Oct 2024 16:20:34 -0400 Subject: [PATCH] finish remove deprecated resources --- docs/resources/bindplane_configuration.md | 26 ------------------- docs/resources/bindplane_processor.md | 31 +---------------------- test/integration/main.tf | 23 ----------------- 3 files changed, 1 insertion(+), 79 deletions(-) diff --git a/docs/resources/bindplane_configuration.md b/docs/resources/bindplane_configuration.md index 418a892..8ac4498 100644 --- a/docs/resources/bindplane_configuration.md +++ b/docs/resources/bindplane_configuration.md @@ -104,26 +104,6 @@ resource "bindplane_destination" "google" { type = "googlecloud" } -resource "bindplane_processor" "add_fields" { - rollout = true - name = "add-fields" - type = "add_fields" - parameters_json = jsonencode( - [ - { - "name": "enable_logs", - "value": true - }, - { - "name": "log_resource_attributes", - "value": { - "key": "value2" - } - } - ] - ) -} - resource "bindplane_processor" "batch" { rollout = true name = "my-batch" @@ -166,16 +146,10 @@ resource "bindplane_configuration" "configuration" { source { name = bindplane_source.host.name - processors = [ - bindplane_processor.add_fields.name - ] } source { name = bindplane_source.journald.name - processors = [ - bindplane_processor.add_fields.name - ] } destination { diff --git a/docs/resources/bindplane_processor.md b/docs/resources/bindplane_processor.md index be78f51..2f80ada 100644 --- a/docs/resources/bindplane_processor.md +++ b/docs/resources/bindplane_processor.md @@ -39,40 +39,11 @@ resource "bindplane_processor" "batch" { } ``` -### Add Fields w/ Custom Parameters - -This example shows the [Add Fields](https://docs.bindplane.observiq.com/docs/add-fields) processor type -with custom parameters using the `parameters_json` option. - -```hcl -resource "bindplane_processor" "fields" { - rollout = true - name = "my-fields" - type = "add_fields" - parameters_json = jsonencode( - [ - { - "name": "enable_logs" - "value": true - }, - { - "name": "log_resource_attributes", - "value": { - "location": "east1-a", - "env": "dev" - } - } - ] - ) -} -``` - ## Usage You can find available processor types with the `bindplane get processor-type` command: ```bash NAME DISPLAY VERSION -add_fields Add Fields 1 batch Batch 1 count_telemetry Count Telemetry 1 custom Custom 1 @@ -203,4 +174,4 @@ processor can be imported. For example: ```bash terraform import bindplane_processor.processor {{name}} -``` \ No newline at end of file +``` diff --git a/test/integration/main.tf b/test/integration/main.tf index 3a26cc4..eda33f1 100644 --- a/test/integration/main.tf +++ b/test/integration/main.tf @@ -70,9 +70,6 @@ resource "bindplane_configuration" "config" { source { name = bindplane_source.otlp.name - processors = [ - bindplane_processor.add_fields.name - ] } source { @@ -223,26 +220,6 @@ resource "bindplane_processor" "batch-options" { ) } -resource "bindplane_processor" "add_fields" { - rollout = true - name = "add-fields" - type = "add_fields" - parameters_json = jsonencode( - [ - { - "name": "enable_logs" - "value": true - }, - { - "name": "log_resource_attributes", - "value": { - "key": "value2" - } - } - ] - ) -} - resource "bindplane_extension" "custom" { rollout = true name = "my-custom"