Skip to content

Commit ee77dbe

Browse files
authored
[ja]Translate content/en/docs/zero-code/setup/standalone.md (#7726)
1 parent 1d0e02b commit ee77dbe

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: OBIをスタンドアロンプロセスとして実行する
3+
linkTitle: スタンドアロン
4+
description: OBIをLinuxのスタンドアロンプロセスとしてセットアップして実行する方法を学びます。
5+
weight: 4
6+
default_lang_commit: c6df1ca98613ce886d3ea5ecb7ea50d02a31f18a
7+
---
8+
9+
OBIは、他の実行中プロセスを検査できる昇格された権限を持つスタンドアロンのLinux OSプロセスとして実行できます。
10+
11+
## ダウンロードとインストール {#download-and-install}
12+
13+
OBIの実行可能ファイルは、[OBIリリースページ](http://github.com/open-telemetry/opentelemetry-ebpf-instrumentation/releases)からダウンロードできます。
14+
15+
## OBIのセットアップ {#set-up-obi}
16+
17+
1. [構成オプション](../../configure/options/)ドキュメントに従って構成ファイルを作成します。
18+
19+
2. OBIを特権プロセスとして実行します。
20+
21+
```bash
22+
sudo ./obi --config=<構成ファイルのパス>
23+
```
24+
25+
## 構成例 {#example-configuration}
26+
27+
構成ファイルの例(`obi-config.yml`)を示します。
28+
29+
```yaml
30+
# 基本設定
31+
discovery:
32+
services:
33+
- name: my-service
34+
open_ports: [8080, 8090]
35+
exe_path: /usr/local/bin/my-service
36+
37+
# トレース構成
38+
traces:
39+
# トレース有効化
40+
enabled: true
41+
42+
# OpenTelemetryエンドポイント
43+
otlp_endpoint: http://localhost:4318
44+
45+
# トレースフォーマット
46+
format: otlp
47+
48+
# メトリクス構成
49+
metrics:
50+
# メトリクス有効化
51+
enabled: true
52+
53+
# OpenTelemetryエンドポイント
54+
otlp_endpoint: http://localhost:4318
55+
56+
# メトリクスフォーマット
57+
format: otlp
58+
59+
# ログ構成
60+
log_level: info
61+
```
62+
63+
## OBIの実行 {#run-obi}
64+
65+
構成ファイルを使用してOBIを実行します。
66+
67+
```bash
68+
sudo ./obi --config=obi-config.yml
69+
```
70+
71+
## 構成オプション {#configuration-options}
72+
73+
構成オプションの完全なリストについては、[構成ドキュメント](../../configure/options/)を参照してください。
74+
75+
## 権限 {#permissions}
76+
77+
OBIが適切に機能するには、昇格された権限が必要です。
78+
具体的に必要なケーパビリティの詳細については、[セキュリティドキュメント](../../security/)を参照してください。
79+
80+
## 例: Dockerの計装
81+
82+
Dockerコンテナの計装するために、ホスト上でOBIを実行できます。
83+
84+
```bash
85+
sudo ./obi --config=obi-config.yml
86+
```
87+
88+
コンテナを対象とする構成です。
89+
90+
```yaml
91+
discovery:
92+
services:
93+
- name: my-container-service
94+
open_ports: [8080]
95+
exe_path: /proc/*/root/app/my-app
96+
```
97+
98+
## 例: システム全体の計装 {#example-system-wide-instrumentation}
99+
100+
システム上のすべてのサービスを計装します。
101+
102+
```yaml
103+
discovery:
104+
services:
105+
- name: all-services
106+
open_ports: [80, 443, 8080, 8443]
107+
108+
log_level: info
109+
```
110+
111+
この構成では、指定されたポードでリッスンしているすべてのプロセスが計装されます。

0 commit comments

Comments
 (0)