> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Alex

> AWS、Azure、GCPにまたがるクラウドコストの分析、リソースの最適化、マルチクラウドインフラの改善。

AlexはCloudThinkerのクラウドインフラ専門家で、AWS、Azure、GCPにまたがるコスト最適化、パフォーマンスチューニング、マルチクラウドアーキテクチャを専門とします。

***

## Alexが解決する問題

クラウドインフラのコストは不透明です。AWSだけでも200以上のサービスがあり、それぞれにコンピューティング、ストレージ、データ転送、リザーブドキャパシティ、スポット、セービングスプランなど独自の料金モデルがあります。ほとんどのチームは請求書が届いたときにはじめてクラウドの請求が高すぎることに気づきます。その頃には、何ヶ月もの無駄なコストが積み重なっています。

手動でのコスト管理には以下が必要です:

* コストデータをエクスポートしてスプレッドシートを作成してパターンを見つける
* すべてのリージョンで `aws describe-instances` を実行してアイドルリソースを見つける
* リザーブドインスタンスの価格を実際の使用パターンと手動で比較する
* AWS Cost Explorer、CloudWatch、リソースコンソール間を行き来してコストと使用率を関連付ける

これには毎月数日のエンジニアリング時間がかかります — それはスプレッドシートとスライドを生成するだけで、インフラを実際に修正しません。

***

## 他のツールが見落としていること

| ツール                      | 機能                          | 不足している点                              |
| ------------------------ | --------------------------- | ------------------------------------ |
| **AWS Cost Explorer**    | サービス/アカウント別の過去の支出を可視化       | 推奨事項なし、クロスクラウドなし、アクション機能なし           |
| **CloudHealth / Apptio** | FinOpsダッシュボードとガバナンスレポート     | レポートのみ、AIによる分析なし、高コスト、専任FinOpsチームが必要 |
| **AWS Trusted Advisor**  | アイドルリソースとリザーブドキャパシティの基本チェック | 約50チェックに限定、会話型クエリなし、AWSのみ            |
| **Infracost**            | IaCの変更に対するコスト見積もり           | デプロイ前のみ、ライブインフラ分析なし                  |
| **Spot.io**              | スポット/リザーブドキャパシティの自動最適化      | コンピューティング重点、マルチクラウドのコストナラティブなし       |

Alexはこれらのどれもできないことをします: 特定の使用パターンを理解し、コストがそうなっている*理由*を説明し、あなたの[承認](/ja/guide/approval)のもとで修正を実施できます。

***

## Alexの仕組み

1. **クラウドプロバイダーに読み取りアクセスクレデンシャルで接続** — AWS Cost Explorer、CloudWatch、EC2/RDS APIs、Azure Cost Management、GCP Billing
2. **コンテキストで分析** — メトリクスを引き出すだけでなく、使用率パターンをコストデータとインフラトポロジーと関連付ける
3. **具体的なドル節約額、工数レベル、リスク評価、実装手順を含む推奨事項を形成**
4. **[承認](/ja/guide/approval)に基づいて実行** — リサイジング、リザーブドインスタンス購入推奨の作成、リソースのタグ付け、レビュー用のIaC差分の生成ができる
5. **環境を学習** — メモリに設定を保存（例: 除外するリソース、優先インスタンスファミリー、コスト閾値）

***

## 機能

| ドメイン                                                | 機能                                             |
| --------------------------------------------------- | ---------------------------------------------- |
| **[CostOps](/ja/guide/cost-optimization/overview)** | 支出分析、リサイジング、リザーブドインスタンス、セービングスプラン、未使用リソースの検出   |
| **パフォーマンス**                                         | オートスケーリング、ロードバランシング、ネットワーク最適化、ボトルネック特定         |
| **マルチクラウド**                                         | プロバイダー間の比較、移行計画、統一管理                           |
| **インフラ**                                            | リソース管理、IaC（Terraform、CloudFormation）、アーキテクチャ設計 |

***

## プロンプトパターン

### コスト分析

```text theme={null}
# Spending overview
@alex analyze AWS spending trends over the last quarter

# Right-sizing
@alex identify EC2 instances with <20% CPU utilization over 30 days

# Reserved capacity
@alex compare reserved instances vs savings plans for our usage pattern

# Waste detection
@alex find unattached volumes, unused elastic IPs, and orphaned snapshots
```

### パフォーマンス最適化

```text theme={null}
# Auto-scaling review
@alex review Auto Scaling groups and recommend threshold adjustments

# Network analysis
@alex analyze network traffic patterns and load balancer configuration

# Bottleneck detection
@alex identify resource bottlenecks in the web tier
```

### マルチクラウドオペレーション

```text theme={null}
# Cost comparison
@alex compare AWS vs Azure costs for our current workloads

# Migration planning
@alex create migration plan from on-premise to AWS with cost analysis

# Unified analysis
@alex analyze spending across AWS, Azure, and GCP with consolidation recommendations
```

### インフラ監査

```text theme={null}
# Comprehensive audit
@alex audit infrastructure for cost, performance, and security issues

# Governance check
@alex analyze resources against our cloud governance policies

# Architecture review
@alex review our microservices architecture for cost efficiency
```

***

## ツールの使用

| ツール          | AlexのユースCase                  |
| ------------ | ----------------------------- |
| `#dashboard` | コストトレンド、リソース使用率、サービス別支出       |
| `#report`    | 四半期コスト分析、移行評価、アーキテクチャレビュー     |
| `#recommend` | リサイジング、リザーブドキャパシティ購入、最適化アクション |
| `#alert`     | 予算閾値、コストスパイク、使用率の異常           |
| `#chart`     | 支出トレンド、使用パターン、コスト予測           |

### ツールを使った例

```text theme={null}
@alex #dashboard monthly cost trends by service and region
@alex #report cost optimization opportunities with projected savings
@alex #recommend instances for right-sizing with implementation steps
@alex #alert when daily spend exceeds $5,000
```

***

## 効果的なプロンプト

**ヒント: 具体的に指定する**

```text theme={null}
# Good
@alex analyze EC2 instances in us-east-1
with <15% CPU over past 30 days

# Avoid
@alex check our servers
```

**ヒント: コンテキストを追加する**

```text theme={null}
# Good
@alex recommend cost savings
excluding production-critical services
prioritizing quick wins

# Avoid
@alex save money
```

***

## 接続要件

Alexはコストとパフォーマンスデータにアクセスできるクラウドプロバイダー接続を必要とします:

| プロバイダー    | 必要なアクセス                                     |
| --------- | ------------------------------------------- |
| **AWS**   | Cost Explorer、CloudWatch、EC2、RDS、S3、Lambda  |
| **Azure** | Cost Management、Monitor、Compute、Storage     |
| **GCP**   | Billing、Monitoring、Compute Engine、Cloud SQL |

***

## 一般的なワークフロー

### 月次コストレビュー

```text theme={null}
# Step 1: Overview
@alex #dashboard monthly cost summary by service

# Step 2: Identify issues
@alex which services had the largest cost increase?

# Step 3: Deep dive
@alex analyze RDS spending by instance type and utilization

# Step 4: Action
@alex #recommend cost optimizations with ROI timeline
```

### インフラ最適化

```text theme={null}
# Step 1: Discovery
@alex audit all resources for optimization opportunities

# Step 2: Analysis
@alex #report detailed analysis of underutilized resources

# Step 3: Implementation
@alex #recommend right-sizing actions with rollback plan
```

***

## 次のステップ

<CardGroup cols={2}>
  <Card title="CostOps" icon="piggy-bank" href="/ja/guide/cost-optimization/overview">
    Alexが動かす完全なコスト最適化エンジンを探索する
  </Card>

  <Card title="CloudKeepers" icon="radar" href="/ja/guide/infrastructure/cloudkeepers">
    Alexが24時間365日自律的に監視する継続的なコストガードレールをセットアップする
  </Card>

  <Card title="CloudThinker Language" icon="code" href="/ja/guide/language">
    効果的なコスト分析のための `@alex #tool` プロンプトパターンをマスターする
  </Card>

  <Card title="Anna" icon="users" href="/ja/guide/agents/anna">
    クロスドメインオペレーションのためにAlexを他のエージェントと連携させる
  </Card>
</CardGroup>
