Skip to content

chore(mixin): update NodeNetworkTransmitErrs/NodeNetworkReceiveErrs descriptions - #3752

Open
v-zhuravlev wants to merge 1 commit into
prometheus:masterfrom
v-zhuravlev:network_alerts
Open

chore(mixin): update NodeNetworkTransmitErrs/NodeNetworkReceiveErrs descriptions#3752
v-zhuravlev wants to merge 1 commit into
prometheus:masterfrom
v-zhuravlev:network_alerts

Conversation

@v-zhuravlev

Copy link
Copy Markdown
Contributor

Previous descriptions could lead to confusing alert description like:

Description
myhost interface tap8cf786dc-d2 has encountered 0 transmit errors in the last two minutes

if the latest value is < 0.5

…escriptions

Signed-off-by: v-zhuravlev <v-zhuravlev@users.noreply.github.com>

@ArthurSens ArthurSens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The query is actually a percentage, so this is probably a better fit :)

annotations: {
summary: 'Network interface is reporting many receive errors.',
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} receive errors in the last two minutes.',
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.2f" $value }} receive errors in the last two minutes.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.2f" $value }} receive errors in the last two minutes.',
description: '{{ $labels.instance }} interface {{ $labels.device }} reported receive errors for {{ $value | humanizePercentage }} of packets in the last two minutes.',

annotations: {
summary: 'Network interface is reporting many transmit errors.',
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} transmit errors in the last two minutes.',
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.2f" $value }} transmit errors in the last two minutes.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.2f" $value }} transmit errors in the last two minutes.',
description: '{{ $labels.instance }} interface {{ $labels.device }} reported transmit errors for {{ $value | humanizePercentage }} of packets in the last two minutes.',

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.

3 participants