equinix_fabric_stream_subscription(リソース)
Fabric V4 API互換リソースにより、Equinix Fabricストリームサブスクリプションの作成と管理が可能
追加ドキュメント
- はじめに: https://docs.equinix.com/observability/streaming-data/integratewithsink/
- API: https://docs.equinix.com/api-catalog/fabricv4/#tag/Stream-Subscriptions
使用例
resource "equinix_fabric_stream_subscription" "SPLUNK" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
event_selector = {
include = ["equinix.fabric.connection.*"]
}
metric_selector = {
include = ["equinix.fabric.connection.*"]
}
sink = {
type = "SPLUNK_HEC"
uri = "<splunk_uri>"
settings = {
event_index = "<splunk_event_index>"
metric_index = "<splunk_metric_index>"
source = "<splunk_source>"
}
credential = {
type = "ACCESS_TOKEN"
access_token = "<splunk_access_token>"
}
}
}
resource "equinix_fabric_stream_subscription" "SLACK" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "SLACK"
uri = "<slack_uri>"
}
}
resource "equinix_fabric_stream_subscription" "PAGER_DUTY" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "PAGERDUTY"
host = "<pager_duty_host"
settings = {
change_uri = "<pager_duty_change_uri>"
alert_uri = "<pager_duty_alert_uri>"
}
credential = {
type = "INTEGRATION_KEY"
integration_key = "<pager_duty_integration_key>"
}
}
}
resource "equinix_fabric_stream_subscription" "DATADOG" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "DATADOG"
host = "<datadog_host>"
settings = {
source = "Equinix"
application_key = "<datadog_application_key>"
event_uri = "<datadog_event_uri>"
metric_uri = "<datadog_metric_uri>"
}
credential = {
type = "API_KEY"
api_key = "<datadog_api_key>"
}
}
}
resource "equinix_fabric_stream_subscription" "MSTEAMS" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "TEAMS"
uri = "<msteams_uri>"
}
}
resource "equinix_fabric_stream_subscription" "servicenow" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "SERVICENOW"
host = "<servicenow_host>"
settings = {
source = "Equinix"
}
credential = {
type = "USERNAME_PASSWORD"
username = "<servicenow_username>"
password = "<servicenow_password>"
}
}
}
resource "equinix_fabric_stream_subscription" "webhook" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "WEBHOOK"
settings = {
format = "<webhook_format>"
event_uri = "<webhook_event_uri>"
metric_uri = "<webhook_metric_uri>"
}
}
}
resource "equinix_fabric_stream_subscription" "grafana" {
type = "STREAM_SUBSCRIPTION"
name = "<name>"
description = "<description>"
stream_id = "<stream_id>"
enabled = true
sink = {
type = "WEBHOOK"
settings = {
format = "OPENTELEMETRY"
event_uri = "<grafana_event_uri>"
metric_uri = "<grafana_metric_uri>"
}
}
}
スキーマ
必須
description(String)お客様提供のストリームサブスクリプションの説明enabled(ブール型)ストリームサブスクリプション有効ステータスname(String)お客様提供のストリームサブスクリプション名sink(属性) Equinixストリームのサブスクライバの詳細(入れ子になったスキーマについては以下を参照)stream_id(String)ストリームサブスクリプションのターゲットであるストリームのUUIDtype(String)ストリームサブスクリプションリクエストのタイプ
オプション
event_selector(属性)ストリームサブスクリプションに含める/除外するイベントのリスト(入れ子スキーマについては以下を参照)metric_selector(属性)ストリームサブスクリプションに含める/除外するメトリクスのリスト(入れ子スキーマについては以下を参照)timeouts(属性)(入れ子になったスキーマについては以下を参照)
読み取り専用
change_log(属性)ストリームリソースの最後の変更の詳細(入れ子になったスキーマについては以下を参照)href(String)ストリームサブスクリプションリソースのEquinix割当てURI(URI)id(String)リソースの一意の識別子stateストリームリソースのプロビジョニングステータスを表す(String)値uuid(String)ストリームサブスクリプションリソースのEquinix割り当て済みの一意の識別子
の入れ子スキーマsink
必須
type(String)サブスクライバのタイプ
オプション:
batch_enabled(Boolean)データの一括配信を可能にするブールスイッチbatch_size_max(数値)バッチ配信の最大サイズ(有効な場合)batch_wait_time_max(数値)バッチ配信が有効な場合の最大待機時間credential(属性)指定されたシンクタイプのアクセスの詳細(入れ子になったスキーマについては以下を参照)host(String)特定のデータストリームサブスクリプション製品の既知のホスト名。変数のURIと混同しないよう注意してくださいsettings(属性)ストリームサブスクリプションシンク設定(入れ子になったスキーマについては以下を参照)uri(String)データストリーム用のパブリックに到達可能なhttpエンドポイントの宛先
の入れ子スキーマsink.credential
必須
type(String)渡される認証情報のタイプ
オプション:
access_token(文字列、センシティブ)承認ヘッダー値として渡されるapi_key(文字列、センシティブ)承認ヘッダー値として渡されるintegration_key(文字列、センシティブ)承認ヘッダー値として渡されるpassword(文字列、センシティブ)承認ヘッダー値として渡されるusername(String)承認ヘッダー値として渡されました
の入れ子スキーマsink.settings
オプション:
application_key(文字列、センシティブ)event_index(文字列)event_uri(文字列)format(文字列)metric_index(文字列)metric_uri(文字列)source(文字列)
の入れ子スキーマevent_selector
必須
include(文字列のリスト)含めるイベントのリスト
オプション:
except(文字列のリスト)除外するイベントのリスト
の入れ子スキーマmetric_selector
必須
include(文字列のリスト)含めるメトリクスのリスト
オプション:
except(文字列のリスト)除外するメトリクスのリスト
の入れ子スキーマtimeouts
オプション:
create(String)「30s」や「2h45m」など、数値と単位サフィックスで構成される期間として解析できる文字列。有効な時間単位は、「s」(秒)、「m」(分)、「h」(時間)です。delete(String)「30s」や「2h45m」など、数値と単位サフィックスで構成される期間として解析できる文字列。有効な時間単位は、「s」(秒)、「m」(分)、「h」(時間)です。削除操作のタイムアウトの設定は、破棄操作が行われる前の状態で変更が保存された場合にのみ適用されます。read(String)「30s」や「2h45m」など、数値と単位サフィックスで構成される期間として解析できる文字列。有効な時間単位は、「s」(秒)、「m」(分)、「h」(時間)です。更新が有効になっている場合、更新または計画操作中に読み取り操作が発生します。update(String)「30s」や「2h45m」など、数値と単位サフィックスで構成される期間として解析できる文字列。有効な時間単位は、「s」(秒)、「m」(分)、「h」(時間)です。
の入れ子スキーマchange_log
読み取り専用:
created_by(String)ストリームリソースの作成者のユーザー名created_by_email(String)ストリームリソースの作成者のメールcreated_by_full_name(String)ストリームリソースの作成者の正式な名前created_date_time(String)ストリームリソースの作成時刻deleted_by(String)ストリームリソースの削除者のユーザー名deleted_by_email(String)ストリームリソースの削除者のメールdeleted_by_full_name(String)ストリームリソースの削除者の正式な名前deleted_date_time(String)ストリームリソースの削除時刻updated_by(String)ストリームリソースの最終更新者のユーザー名updated_by_email(String)ストリームリソースの最終更新者のメールupdated_by_full_name(String)ストリームリソースの最終更新者の正式な名前updated_date_time(String)ストリームリソースの最終更新時刻