How to get request count or percentage which Target Response Time under specific seconds ?

How to get request count or percentage which Target Response Time under specific seconds ?

2023.05.22

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

Introduction

How to get request count or percentage which Target Response Time under specific seconds ? In this blog, I will try to provide a solution of how i was trying to aggregate the data.

How to Achieve it

To get the request count or percentage in this target group which Target Response Time under specific seconds, It may be possible to achieve this by aggregating the Target Response Time in the ALB access log. Please try to acquire the access log and try to aggregate it by using the awk command of Linux. you can use the following Linux command:

sudo cat /var/log/nginx/access.log | awk '($9 < sec) {count++} END {print count}'

※Replace "sec" with the desired response time in seconds.

Conclusion:

By following Linux awk command, you can ensure that is possible to aggregate the data.


AWSテクニカルサポートノートについて

過去にクラスメソッドのAWS総合支援サービスで頂いたお問合せの中から、通常のAWS利用時でも有益になりうる情報をテクニカルサポートチームがTIPSとしてご紹介しています。技術サポートは、無料でご提供しております。詳細は下記ボタンからご覧ください。

クラスメソッドのAWSサポートの詳細を見る

この記事をシェアする

関連記事