forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
scripts/enable_expvar.sh | ||
scripts/secret_token.sh | ||
scripts/index_shards.sh | ||
scripts/custom-apm-integration-pkg.sh | ||
scripts/drop_pipeline.sh | ||
scripts/*.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
31 changes: 31 additions & 0 deletions
31
...ing/infra/terraform/modules/ec_deployment/scripts/delete_integration_index_templates.tfpl
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,31 @@ | ||
#!/bin/bash | ||
|
||
index_templates=( | ||
"logs-apm.app" | ||
"logs-apm.error" | ||
"metrics-apm.app" | ||
"metrics-apm.internal" | ||
"metrics-apm.service_destination.1m" | ||
"metrics-apm.service_destination.10m" | ||
"metrics-apm.service_destination.60m" | ||
"metrics-apm.service_summary.1m" | ||
"metrics-apm.service_summary.10m" | ||
"metrics-apm.service_summary.60m" | ||
"metrics-apm.service_transaction.1m" | ||
"metrics-apm.service_transaction.10m" | ||
"metrics-apm.service_transaction.60m" | ||
"metrics-apm.transaction.1m" | ||
"metrics-apm.transaction.10m" | ||
"metrics-apm.transaction.60m" | ||
"traces-apm" | ||
"traces-apm.rum" | ||
"traces-apm.sampled" | ||
) | ||
|
||
for tpl in $${index_templates[@]}; do | ||
curl -s --fail -XDELETE -u ${elasticsearch_username}:${elasticsearch_password} "${elasticsearch_url}/_index_template/$${tpl}" | ||
# TODO(axw) check exit code. curl exits with 22 on a status code >= 400. | ||
# We want the operation to be idempotent, so we should not fail if the index template does not exist (404). | ||
# We should fail on other errors though. | ||
done | ||
exit 0 |
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