Enable Xpu Monitoringのロゴ

Enable Xpu Monitoring

組織
intel
enable-xpu-monitoring

intel/xe-full-stack-monitoringリポジトリを使い、Intel GPUホストにPrometheus + Grafana + XPU Managerの監視スタックをデプロイします(標準のDocker Composeを使用)。コンテナを起動して、GPU、CPU、vLLMのメトリクスをリアルタイムで収集・可視化します。XPUの使用率、温度、電力、メモリ、またはvLLMの推論性能を監視したい場合に使用します。

Add to TypingMind

概要

公開者intel
リポジトリgpu-ai-skills
スキル名enable-xpu-monitoring
スター
50
フォーク
16
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    intelがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Enable Xpu Monitoring」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/intel/gpu-ai-skills/tree/main/plugins/intel-gpu-ai-skills/skills/enable-xpu-monitoring
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/intel/gpu-ai-skills.git /tmp/gpu-ai-skills
mkdir -p .claude/skills
cp -r /tmp/gpu-ai-skills/plugins/intel-gpu-ai-skills/skills/enable-xpu-monitoring .claude/skills/enable-xpu-monitoring
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEnable Xpu Monitoringを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にEnable Xpu Monitoringを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Enable Xpu Monitoringは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

enable-xpu-monitoring

Deploy a single-node monitoring stack on an Intel GPU host from intel/xe-full-stack-monitoring. The stack is pure Docker Compose — no CLI, no Python package, no tarball. That repo's AGENT.md is the source of truth; this skill gives the short path and defers detail to it.

What gets deployed

ContainerPortPurpose
xpumd (XPU Manager v2.0)9471GPU hardware metrics via Level Zero
node-exporter9100CPU, RAM, disk, network
intel-xpu-prometheus9090Scrapes xpumd, node, and vLLM
intel-xpu-grafana30004 dashboards: Quickview, GPU, vLLM, System

All listeners bind to 127.0.0.1. Grafana has no login (anonymous, read-only Viewer).

Step 1 — Preflight

sh
ls /dev/dri/renderD* >/dev/null 2>&1 && echo "[OK] GPU render nodes" || echo "[FAIL] no render nodes"
docker info >/dev/null 2>&1 && echo "[OK] docker" || echo "[FAIL] docker not reachable"
docker compose version >/dev/null 2>&1 && echo "[OK] compose" || echo "[FAIL] compose plugin missing"
for p in 9471 9100 9090 3000; do
  (ss -ltn 2>/dev/null || netstat -ltn) | grep -q ":$p " && echo "port $p IN USE" || echo "port $p free"
done

Fix any [FAIL]. Ports held by a previous run of this same stack are fine. If 9471, 9100 or 9090 is held by anything else, it must be freed; those ports cannot be changed.

If port 3000 is held by another app, do not stop that app. Move Grafana to a free port instead:

sh
GRAFANA_PORT=3000
if (ss -ltn 2>/dev/null || netstat -ltn) | grep -q ":3000 " \
   && ! docker ps --format '{{.Names}}' | grep -qx intel-xpu-grafana; then
  for p in $(seq 3001 3099); do
    (ss -ltn 2>/dev/null || netstat -ltn) | grep -q ":$p " || { GRAFANA_PORT=$p; break; }
  done
fi
echo "Grafana port: $GRAFANA_PORT"

If GRAFANA_PORT is not 3000, tell the user clearly:

Port 3000 is already in use on this host, so Grafana will run on port <GRAFANA_PORT>. Use this port for the dashboard URL and the SSH tunnel.

Step 2 — Get the repo

If the stack is already running, reuse the repo it was started from, so Compose manages the same containers instead of a second copy:

sh
REPO=$(docker inspect intel-xpu-grafana \
  --format '{{index .Config.Labels "com.docker.compose.project.working_dir"}}' 2>/dev/null)
[ -n "$REPO" ] && [ -d "$REPO" ] && cd "$REPO" && echo "Existing stack in $REPO"

If that prints Existing stack in ..., skip the clone and go to Step 3. Otherwise:

sh
git clone https://github.com/intel/xe-full-stack-monitoring.git
cd xe-full-stack-monitoring

If git clone fails or hangs (no internet or proxy on the host), copy the repo from the user's laptop instead. Run on the laptop:

sh
git clone https://github.com/intel/xe-full-stack-monitoring.git
scp -r xe-full-stack-monitoring <ssh-host-alias>:~/

Then on the host: cd ~/xe-full-stack-monitoring.

Run every docker compose command below from this repo root (volume paths are relative).

If Step 1 moved Grafana, create an override file in the repo root. Compose reads it automatically, and the repo's tracked files stay unchanged:

sh
cat > docker-compose.override.yml <<EOF
services:
  grafana:
    environment:
      - GF_SERVER_HTTP_PORT=$GRAFANA_PORT
      - GF_SERVER_ROOT_URL=http://localhost:$GRAFANA_PORT/
EOF
docker compose config | grep GF_SERVER_HTTP_PORT   # shows the new port

Step 3 — Tell the user the default vLLM ports, then ask

Before deploying, confirm the defaults from the cloned repo and state them clearly:

sh
sed -n '/job_name: "vllm"/,$p' prometheus/prometheus.yml | grep localhost

Heads-up: vLLM metrics are scraped only on ports 8000–8008 by default. A vLLM server on any other port will NOT show up in Grafana. Do you run vLLM on a different port that should be added? (default: no)

If the answer is no, skip Step 6.

Step 4 — Deploy

This pulls ~1.5 GB of images and creates four containers. Get the user's confirmation first, then:

sh
docker compose up -d

Run this even when the stack is already up. It leaves running containers alone, starts any that are stopped, and applies config changes. Do not skip it, and do not stop or remove containers to "start fresh".

Step 5 — Verify

Wait 10–15 s, then:

sh
docker compose ps                                       # four containers Up
curl -s http://localhost:9090/-/healthy                 # Prometheus healthy
curl -s http://localhost:$GRAFANA_PORT/api/health       # Grafana healthy
curl -s http://localhost:9471/metrics | grep -c hw_gpu  # >0 = GPU metrics flowing

vllm targets show down until a vLLM server runs on a scraped port — that is expected, not a failure. For deeper checks and troubleshooting, see the repo's AGENT.md.

Step 6 — Add a non-default vLLM port (only if the user asked)

  1. Edit prometheus/prometheus.yml, and add one line per port under the vllm job's targets::

    yaml
          - targets:
              - "localhost:8000"
              # ... through 8008 ...
              - "localhost:8101"     # ← added
  2. Restart only Prometheus so it picks up the new config:

    sh
    docker compose restart prometheus

    Do not use curl -X POST localhost:9090/-/reload. The lifecycle API is off. Also, the config is a single-file bind mount, so after an editor saves it, a reload can still read the old file. Do not run docker compose down for this change. Metrics history is kept in a volume, so it survives the restart.

  3. Confirm the container sees it and the target is registered:

    sh
    docker exec intel-xpu-prometheus grep 8101 /etc/prometheus/prometheus.yml
    curl -s 'http://localhost:9090/api/v1/targets?state=active' | grep 8101

To stop monitoring a port, delete its line and restart Prometheus again.

Step 7 — Report back and give remote access

Tell the user: Grafana is at http://localhost:<GRAFANA_PORT> (no login), how many GPUs xpumd found, and which targets are up. Repeat which vLLM ports are monitored (8000–8008, plus any added in Step 6). If Grafana was moved off 3000, say so again here. Name the source: the stack is intel/xe-full-stack-monitoring, deployed from <repo path>. Say this even when Step 2 reused a running stack.

Services listen on localhost only, so a remote user needs an SSH tunnel. Always give this generic form, and never fill in an IP address or hostname. Replace <GRAFANA_PORT> with the port from Step 1 (3000 by default). Run it on the user's laptop:

sh
ssh -N -L <GRAFANA_PORT>:localhost:<GRAFANA_PORT> -L 9090:localhost:9090 <ssh-host-alias>

<ssh-host-alias> is a Host entry in the user's ~/.ssh/config. They add it themselves, for example:

Host gpu-box
    HostName <gpu-host>
    User <user>
    # ProxyJump <jump-host>   # if the GPU host is behind a bastion

Then open http://localhost:<GRAFANA_PORT> in the laptop browser. If that port is already in use on the laptop, change only the first (local) number, for example -L 13000:localhost:<GRAFANA_PORT>, and open http://localhost:13000.

Limitations and common failures

SymptomCause / fix
git clone hangsHost is behind a corporate proxy. Pass it for this command only, for example git -c http.proxy=http://<proxy>:<port> clone ..., or use the scp copy in Step 2

The skill does not install GPU drivers, change kernel parameters, or put Grafana on a non-localhost address.

Teardown

sh
docker compose down        # remove containers, keep metrics history
docker compose down -v     # also deletes volumes, which DESTROYS history. Confirm with the user first

よくある質問

AIスキル「Enable Xpu Monitoring」では何ができますか?

intel/xe-full-stack-monitoringリポジトリを使い、Intel GPUホストにPrometheus + Grafana + XPU Managerの監視スタックをデプロイします(標準のDocker Composeを使用)。コンテナを起動して、GPU、CPU、vLLMのメトリクスをリアルタイムで収集・可視化します。XPUの使用率、温度、電力、メモリ、またはvLLMの推論性能を監視したい場合に使用します。

TypingMindでEnable Xpu Monitoringを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Enable Xpu Monitoringはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEnable Xpu Monitoringをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/intel/gpu-ai-skills/tree/main/plugins/intel-gpu-ai-skills/skills/enable-xpu-monitoringを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Enable Xpu Monitoringを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Enable Xpu Monitoringで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEnable Xpu Monitoringを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Enable Xpu Monitoring」は無料ですか?

はい。intelがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇