-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: autoscaler and integration docs (#1884)
- Loading branch information
1 parent
2b880be
commit b2dfb18
Showing
10 changed files
with
149 additions
and
26 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
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
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
6 changes: 3 additions & 3 deletions
6
examples/data-sources/aiven_service_integration_endpoint/data-source.tf
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
data "aiven_service_integration_endpoint" "myendpoint" { | ||
project = aiven_project.myproject.project | ||
endpoint_name = "<ENDPOINT_NAME>" | ||
data "aiven_service_integration_endpoint" "example_datadog_endpoint" { | ||
project = aiven_project.example_project.project | ||
endpoint_name = "Datadog endpoint" | ||
} | ||
|
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 |
---|---|---|
@@ -1,6 +1,28 @@ | ||
# Integrate Kafka and M3DB services for metrics | ||
resource "aiven_service_integration" "example_integration" { | ||
project = data.aiven_project.example_project.project | ||
integration_type = "metrics" | ||
source_service_name = aiven_kafka.example_kafka.service_name | ||
destination_service_name = aiven_m3db.example_m3db.service_name | ||
} | ||
|
||
# Use disk autoscaler with a PostgreSQL service | ||
resource "aiven_service_integration_endpoint" "autoscaler_endpoint" { | ||
project = data.aiven_project.example_project.project | ||
endpoint_name = "disk-autoscaler-200GiB" | ||
endpoint_type = "autoscaler" | ||
|
||
autoscaler_user_config { | ||
autoscaling { | ||
cap_gb = 200 | ||
type = "autoscale_disk" | ||
} | ||
} | ||
} | ||
|
||
resource "aiven_service_integration" "autoscaler_integration" { | ||
project = data.aiven_project.example_project.project | ||
integration_type = "autoscaler" | ||
source_service_name = aiven_pg.example_pg.service_name | ||
destination_endpoint_id = aiven_service_integration_endpoint.autoscaler_endpoint.id | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/aiven_service_integration_endpoint/import.sh
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 @@ | ||
terraform import aiven_service_integration_endpoint.example_endpoint PROJECT/ID |
20 changes: 20 additions & 0 deletions
20
examples/resources/aiven_service_integration_endpoint/resource.tf
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,20 @@ | ||
# Datadog endpoint | ||
resource "aiven_service_integration_endpoint" "example_endpoint" { | ||
project = data.aiven_project.example_project.project | ||
endpoint_name = "Datadog endpoint" | ||
endpoint_type = "datadog" | ||
} | ||
|
||
# Disk autoscaler endpoint | ||
resource "aiven_service_integration_endpoint" "autoscaler_endpoint" { | ||
project = data.aiven_project.example_project.project | ||
endpoint_name = "disk-autoscaler-200GiB" | ||
endpoint_type = "autoscaler" | ||
|
||
autoscaler_user_config { | ||
autoscaling { | ||
cap_gb = 200 | ||
type = "autoscale_disk" | ||
} | ||
} | ||
} |
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
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
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