

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 實作
<a name="gamelift-servers-metrics-setup"></a>

根據您的開發環境選取您的實作路徑：

## SDK 實作
<a name="sdk-implementation"></a>


| SDK 類型 | SDK 設定 | 自訂指標 | API 參考 | 
| --- | --- | --- | --- | 
| Go 開發套件 | [完成設定指南](https://github.com/amazon-gamelift/amazon-gamelift-servers-go-server-sdk/blob/main/telemetry-metrics/METRICS.md) | [Go 指標 API](https://github.com/amazon-gamelift/amazon-gamelift-servers-go-server-sdk/blob/main/telemetry-metrics/CUSTOM_METRICS.md) | [Go 動作和資料類型](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk-go-actions.html) | 
| C\$1 SDK | [完成設定指南](https://github.com/amazon-gamelift/amazon-gamelift-servers-csharp-server-sdk/blob/main/telemetry-metrics/METRICS.md) | [C\$1 指標 API](https://github.com/amazon-gamelift/amazon-gamelift-servers-csharp-server-sdk/blob/main/telemetry-metrics/CUSTOM_METRICS.md) | [C\$1 動作和資料類型](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-csharp-actions.html) | 
| C\$1\$1 開發套件 | [完成設定指南](https://github.com/amazon-gamelift/amazon-gamelift-servers-cpp-server-sdk/blob/main/telemetry-metrics/METRICS.md) | [C\$1\$1 指標 API](https://github.com/amazon-gamelift/amazon-gamelift-servers-cpp-server-sdk/blob/main/telemetry-metrics/CUSTOM_METRICS.md) | [C\$1\$1 動作和資料類型](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-cpp-actions.html) | 

## 外掛程式實作
<a name="plugin-implementation"></a>


| 外掛程式 | 外掛程式設定 | 自訂指標 | API 參考 | 
| --- | --- | --- | --- | 
| 不真實 | [完成設定指南](https://github.com/amazon-gamelift/amazon-gamelift-plugin-unreal/blob/main/TelemetryMetrics/METRICS.md) | [不真實指標 API](https://github.com/amazon-gamelift/amazon-gamelift-plugin-unreal/blob/main/TelemetryMetrics/CUSTOM_METRICS.md) | [不真實的動作和資料類型](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-unreal-actions.html) | 
| Unity | [完成設定指南](https://github.com/amazon-gamelift/amazon-gamelift-plugin-unity/blob/main/TelemetryMetrics/METRICS.md) | [Unity 指標 API](https://github.com/amazon-gamelift/amazon-gamelift-plugin-unity/blob/main/TelemetryMetrics/CUSTOM_METRICS.md) | [C\$1 動作和資料類型](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-csharp-actions.html) | 

## 實作工作流程
<a name="implementation-workflow"></a>

每個實作都遵循兩個步驟的程序：

1. **完成設定指南 (METRICS.md：//)** — 基礎設施部署、 AWS 基礎設施組態、機群設定和 Grafana 儀表板組態。

1. **API 實作指南 (CUSTOM\$1METRICS.md)** — 語言特定的 SDK 用量、指標類型、自訂指標建立和進階組態。

### 驗證
<a name="verification"></a>

1. 透過檢查 [Amazon Managed Service for Prometheus](https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html) 工作區或 Amazon CloudWatch 主控台是否有傳入遙測資料來驗證指標流程。

1. 使用預先建置的儀表板檢查 [Amazon Managed Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/what-is-Amazon-Managed-Service-Grafana.html) 中的儀表板可見性。

1. 透過驗證它們出現在您的監控儀表板中來測試自訂指標。

**注意**  
完成實作後，返回此頁面並前往[可用指標](gamelift-servers-metrics-types.md)頁面。