LoginSignup
0
0

More than 3 years have passed since last update.

curlからaws Wowza APIを叩きストリーミングの統計情報を取得する。

Posted at

ストリーミングサービスの開発に携わっているのですが、その監視用にAPIからCPU使用率やコネクション状況などの情報が取れないかと調べたのでまとめておきます。

Applicationの情報が欲しい場合


$ curl -X GET \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
--digest -u "{username}:{password}" \
http://{server_IP}:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/{app_name}/monitoring/current

Severのメトリクスが欲しい場合


$ curl -X GET \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
--digest -u "{username}:{password}" \
http://{server_IP}:8087/v2/machine/monitoring/current

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0