Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

現在の接続ユーザー数や接続者をグラフなどで可視化したい #10

Open
Morichan opened this issue Sep 21, 2022 · 0 comments

Comments

@Morichan
Copy link
Owner

Morichan commented Sep 21, 2022

CloudWatch MetricsにおけるFILLを使うことで、最後にサンプリングされた値を使用して欠損データを埋めることが可能です。
ただ、最後の接続ユーザー数記録があまりにも昔過ぎると、メトリクスグラフ表示時に最後の記録が見切れてしまい、グラフ表示が途中からになってしまうという欠点があります。

Timestreamにおける補間関数 interpolate_locf を使えば、最後にサンプリングされた値を使用して欠損データを埋めることも可能みたいです。
こちらは未確認ですが、そもそも触ったことがないサービスでもあるため、試してみるのはありかもしれません(もちろん費用と相談ですが)。
CloudWatch Logs -> CloudWatch MetricFilter -> Lambda -> SQS -> Timestream というアーキテクチャがいいかも?(ログからどのようにして接続ユーザー数ログをフィルターするか、どのようにTimestreamに送るかをちゃんと調査して決める必要があります)。
https://docs.aws.amazon.com/ja_jp/timestream/latest/developerguide/timeseries-specific-constructs.functions.interpolation.html

@Morichan Morichan changed the title 現在の接続ユーザー数や接続者を把握したい 現在の接続ユーザー数や接続者をグラフなどで可視化したい Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant