デバイスIDを https://pbm-cloud.jiikko.com に登録する必要があります。
app.rb
の config.api_servers
の行をアンコメントアウトするprocon_bypass_man
を起動する。これでデバイスIDが生成されます。/usr/share/pbm/shared/device_id
もしくは実行しているディレクトリにある device_id
の中身を https://pbm-cloud.jiikko.com/devices/new に貼り付けるProconBypassMan.configure do |config|
# ...
config.api_servers = 'https://pbm-cloud.jiikko.com' # これを追加する
# ...
end
brew install imagemagick mysql@8.0 redis
bundle config set --local without production
bundle install
docker compose build
docker compose run --rm web bin/rake db:create db:migrate
docker compose run --rm web bin/rake db:seed
docker compose run --rm web yarn
docker compose up
docker build --target production -t pbm_cloud_production .
ActionCable.server.broadcast(device.unique_key, { type: :loaded_config })
ActionCable.server.broadcast(device.unique_key, { type: :device_is_active })
ProconPerformanceMetric::WriteService.new.execute(
timestamp: "2022-07-16 12:21:00+09:00",
time_taken_max: "0.168",
time_taken_p50: "0.015",
time_taken_p95: "0.016",
time_taken_p99: "00.24",
write_time_max: "0.168",
write_time_p50: "0.001",
read_time_max: "0.168",
read_time_p50: "0.012",
interval_from_previous_succeed_max: "0.168",
interval_from_previous_succeed_p50: "0.015",
external_input_time_max: "0.015",
read_error_count: "0",
write_error_count: "491",
load_agv: "0.49-0.5-0.55",
gc_count: 3,
gc_time: 1.1,
device_uuid: 'd1',
succeed_rate: 1,
collected_spans_size: 4422,
)