Skip to content

Conversation

@yukitsugu-tsukamoto
Copy link

add nlb metrics

```
sh nlb.sh <profile> arn:aws:sns:ap-northeast-1:123456789:alarm-sns-basic app/hoge/123456789
```
- `-r`: (Option) Threshold for `TargetResponseTime`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使ってなくないですか?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-r オプションですよね。つかってないっす。消しときます。

--period 60 \
--evaluation-periods 1 \
--statistic Sum \
--threshold 3.0 \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは3はなにか理由あります?

aws cloudwatch put-metric-alarm \
--alarm-name "awsnetworkelb-$VAL1-$VAL2-$VAL3-ClientTLSNegotiationErrorCount" \
--metric-name ClientTLSNegotiationErrorCount \
--namespace AWS/ApplicationELB \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--namespace AWS/ApplicationELB \
--namespace AWS/NetworkELB \

aws cloudwatch put-metric-alarm \
--alarm-name "awsnetworkelb-$VAL1-$VAL2-$VAL3-UnHealthyHostCount" \
--metric-name UnHealthyHostCount \
--namespace AWS/ApplicationELB \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上と同じく

aws cloudwatch put-metric-alarm \
--alarm-name "awsnetworkelb-$VAL1-$VAL2-$VAL3-TargetTLSNegotiationErrorCount" \
--metric-name TargetTLSNegotiationErrorCount \
--namespace AWS/ApplicationELB \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同じく

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

Successfully merging this pull request may close these issues.

2 participants