ストリーマー#
設定項目#
キー |
型 |
説明 |
|---|---|---|
auto_start |
bool |
ストリーマーをデーモン起動時に自動起動する( 注釈
|
log_file |
string |
ログを出力するファイルパス。空文字の場合はログを出力しません。 |
finalization_timeout |
integer |
シグナルを受けてから終了処理が完了するまで待つ時間(秒)。この時間を超えるとプロセスは強制的に終了されます。 |
measurement_name_default |
string |
計測に付ける名前のデフォルト。 |
measurement_description_default |
string |
計測に付ける説明のデフォルト。 |
channel_capacity |
integer |
スレッド間をつなぐチャンネルのバッファが保持できるデータポイント数。バッファが溢れた場合の動作は 目安値:
注釈 バッファのメモリは遅延確保(lazy allocation)されるため、実際に蓄積されたデータ量に応じたメモリのみが使用されます。大きな値を設定しても、一時的な高負荷が解消してバッファの蓄積がなくなればメモリは解放されます。 |
channel_mode |
string |
スレッド間をつなぐチャンネルのバッファが溢れた場合の処理。
|
base_time_send_interval |
integer |
基準時刻を定期的に送信する間隔(秒)。 |
base_time_ntp_server |
string |
NTP基準時刻の取得に使用するNTPサーバーのアドレス。 |
base_time_gps_synchronized_ntp_server |
string |
GPS基準時刻を取得するために使用する、GPS同期NTPサーバーのアドレス。空文字の場合、GPS基準時刻は作成されません。
使用する場合は、ループバックアドレス( |
設定コマンド#
設定の確認、変更は intdash-agentctl config コマンドで行います。
- ストリーマー設定の確認
$ intdash-agentctl config show streamer
- ストリーマー設定の変更
$ intdash-agentctl config modify streamer <config_in_yaml_format>
コマンド例
$ intdash-agentctl config modify streamer ' auto_start: true log_file: /tmp/intdash-agent-caller.log finalization_timeout: 30 '
注釈
config サブコマンドの直後に --json オプションを指定すると、YAMLの代わりにJSONで入出力できます。
設定ファイル記載例#
streamer:
auto_start: true
log_file: "/dev/stdout"
finalization_timeout: 30
measurement_name_default: default name
measurement_description_default: default description
disk_usage_limit: 90
channel_capacity: 50000
channel_mode: quit
base_time_send_interval: 10
base_time_ntp_server: ntp.intdash.jp
base_time_gps_synchronized_ntp_server: "127.0.0.1"