Skip to content

Conversation

oncilla
Copy link
Contributor

@oncilla oncilla commented Sep 5, 2019

Remove the state label from the ifstate metric.

before:

# HELP beacon_srv_ifstate Interface state, 0 means down, 1 up. More details in labels (ifid, state)
# TYPE beacon_srv_ifstate gauge
beacon_srv_ifstate{elem="bs1-ff00_0_110-1",ifid="1",state="Active"} 1

now:

# HELP beacon_srv_ifstate Interface state, 0==inactive/expired/revoked, 1==active
# TYPE beacon_srv_ifstate gauge
beacon_srv_ifstate{elem="bs1-ff00_0_110-1",ifid="1"} 0

fixes #3103


This change is Reviewable

@oncilla oncilla added BS c/observability Metrics, logging, tracing labels Sep 5, 2019
@oncilla oncilla added this to the Q3S3 milestone Sep 5, 2019
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Remove the state label from the ifstate metric.

before:
    # HELP beacon_srv_ifstate Interface state, 0 means down, 1 up. More details in labels (ifid, state)
    # TYPE beacon_srv_ifstate gauge
    beacon_srv_ifstate{elem="bs1-ff00_0_110-1",ifid="1",state="Active"} 1

now:
    # HELP beacon_srv_ifstate Interface state, 0==inactive/expired/revoked, 1==active
    # TYPE beacon_srv_ifstate gauge
    beacon_srv_ifstate{elem="bs1-ff00_0_110-1",ifid="1"} 0

fixes scionproto#3103
@oncilla oncilla force-pushed the pub-metrics-are-fun-and-we-should-feel-happy branch from 30892bb to 2b7926a Compare September 5, 2019 15:16
@oncilla oncilla merged commit 530cfe3 into scionproto:master Sep 5, 2019
@oncilla oncilla deleted the pub-metrics-are-fun-and-we-should-feel-happy branch September 5, 2019 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/observability Metrics, logging, tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BS: fix ifstate metrics
2 participants