> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/azure-gou-cheng/health-check.md).

# ヘルスチェック

SCEPman の正常性は次を使用して監視できます

* その [Azure App Services のヘルスチェック機能](#health-check-in-azure-app-services) （推奨）または
* 1 つの [サードパーティの監視ツール](/ja/azure-gou-cheng/health-check/using-3rd-party-monitoring.md).

## Azure App Services のヘルスチェック

App Service のヘルスチェック機能と対応するアラートを構成して、SCEPman インスタンスが応答しなくなった場合に直接通知を受け取ることができます。

### ヘルスチェックの構成

{% hint style="info" %}
新しい SCEPman のインストールでは、SCEPman 2.11 からインストール中にヘルスチェックが自動的に追加されます。これ以前に SCEPman をインストールしている場合は、以下の手順に従って手動でヘルスチェックを追加できます。すでに SCEPman のバージョンが 2.11 以降でインストールされている場合は、次のセクションに進んでください [アラートの構成](#configure-alerting). **SCEPman 2.11 のインストールでも、アラートは自動では追加されず、引き続き構成が必要です！**
{% endhint %}

1. 次へ移動します **App Service** そして左側で下にスクロールして **ヘルスチェック**
2. これで **有効にする** ヘルスチェックを有効にします。プローブ用の **パス** に次を入力します: **/probe**
3. これで次をクリックできます: **保存**ただし、次の点に注意してください: **これにより App Service が再起動します**

![ヘルスチェックを有効にする](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-3c837746f832366bfd5abc27e41eba5ebe0f2cbe%2F2022-12-27%2013_04_05.png?alt=media)

### アラートの構成

ヘルスチェックからアラートを受け取るには、App Service でアラート ルールを構成する必要があります。

1. 次へ移動します **App Service** そして左側で下にスクロールして **アラート**
2. 次をクリックします: **アラート ルールの作成**
3. 新しいアラート ルールでは、自動的に次へリダイレクトされます: **条件の追加**
4. シグナル ロジックを選択します。次を検索します: **ヘルスチェックの状態**

![アラート ルールの作成](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-76f2206998eb07b7e055761bf29c5daf79fcc287%2F2022-12-27%2012_13_22.png?alt=media)

5. アラートを以下のとおり構成します:

| **しきい値**     | 静的    |
| ------------ | ----- |
| **集計の種類**    | 平均    |
| **演算子**      | より小さい |
| **単位**       | カウント  |
| **しきい値**     | 70    |
| **チェック間隔**   | 5 分   |
| **ルックバック期間** | 15 分  |

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FUQoISWcPXg3UxxSwjuWK%2Fimage.png?alt=media&amp;token=0ba717a9-c5c7-46d4-88d9-77b345c888b1" alt=""><figcaption><p>アラート ルールの条件</p></figcaption></figure>

6. 次をクリックします: **次へ: アクション**
7. 選択 **アクション グループの作成**

{% hint style="info" %}
既存のアクション グループがある場合は、次を選択します: **アクション グループの選択**アクション グループを選択して、手順 14 に進みます。
{% endhint %}

8. 次を定義します: **アクション グループ名** および **表示名**

![アクション グループの作成](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-90be8a37b636d9eee8dc7d1d3a55a909ea3777c3%2F2022-12-27%2012_29_38.png?alt=media)

9. 次の横に **通知** を追加します **通知の種類**
10. ウィンドウで、次のチェックボックスをオンにします: **メール** チェックボックスをオンにし、通知を受け取りたいメール アドレスを入力します
11. 次に次をクリックします: **OK**
12. 次を入力します: **名前** 通知の種類の

![通知をアクション グループに設定](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-2aad32a044ba452b06fd95efb534f960269f509a%2Fscreen-shot-2021-01-19-at-11.11.40.png?alt=media)

13. その後、次をクリックできます: **確認 + 作成** そして次に **作成。** 次にリダイレクトされます: **アクション** アラート ルールの作成時の
14. D の横に**詳細**次を構成します:
    * **リソース グループ**
    * **重大度**
    * **アラート ルール名**
    * 有効化: **作成時に有効化**
    * 有効化: **アラートを自動的に解決する**

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FV30enHQO0XCTeiJbw7SJ%2F2023-10-23%2013_51_20-Create%20an%20alert%20rule.png?alt=media&amp;token=51b6d634-9664-4fd8-839d-337060f1ce5e" alt=""><figcaption><p>アラートの詳細</p></figcaption></figure>

15. 次をクリックします: **確認 + 作成、** 次に **作成**

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FMlLdeqIoA2IqarutyTqZ%2F2023-10-23%2013_55_02-Create%20an%20alert%20rule.png?alt=media&amp;token=dc8e6678-85f6-439a-9228-bbbe8b5b5f22" alt=""><figcaption></figcaption></figure>

16. 既存の **アラート ルール** 次のように表示します

![既存のアラート ルールを表示](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-334e32bdfdaa0de830345007109837ecf0be9814%2F2022-12-27%2012_46_42.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.scepman.com/ja/azure-gou-cheng/health-check.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
