Skip to content

Commit

Permalink
finish remove deprecated resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Oct 30, 2024
1 parent ba566f0 commit 968e660
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 79 deletions.
26 changes: 0 additions & 26 deletions docs/resources/bindplane_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
31 changes: 1 addition & 30 deletions docs/resources/bindplane_processor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -203,4 +174,4 @@ processor can be imported. For example:

```bash
terraform import bindplane_processor.processor {{name}}
```
```
23 changes: 0 additions & 23 deletions test/integration/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ resource "bindplane_configuration" "config" {

source {
name = bindplane_source.otlp.name
processors = [
bindplane_processor.add_fields.name
]
}

source {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 968e660

Please sign in to comment.