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

scrape more transceiver data #222

Conversation

Gaste8
Copy link
Contributor

@Gaste8 Gaste8 commented Aug 3, 2023

this pr scrapes transceiver information and adds a new metric to the interfacediagnostics module.

"show chassis hardware", "show interfaces media" and "show chassis pic fpc-slot x pic-slot y" are all used to create a new metric.

called junos_interface_transceiver.

e.g.:
junos_interface_transceiver{description="SFP-T",fiber_type="n/a",name="ge-1/0/33",serial_number="F78K8TE",speed="1000mbps",target="csw01.anx10.par.fr.anexia-it.net",vendor_name="FLEXOPTIX",vendor_part_number="T.C12.02",wavelength="n/a"} 1

fstolba and others added 21 commits December 9, 2022 12:31
add port speed from interfaces media to Metric
set value of metric to 1 only if both operstatus and adminstatus 1
add port speed from interfaces media to Metric
set value of metric to 1 only if both operstatus and adminstatus 1
…r' of code.anexia.com:neteng/junos_exporter into netdev-517/add-interface-type,-product-and-serial-number
…r' of code.anexia.com:neteng/junos_exporter into netdev-517/add-interface-type,-product-and-serial-number
@Gaste8 Gaste8 changed the title Netdev 517/add interface type, product and serial number scrape more transceiver data Aug 3, 2023
@Gaste8 Gaste8 marked this pull request as ready for review September 20, 2023 12:14
Copy link
Owner

@czerwonk czerwonk left a comment

Choose a reason for hiding this comment

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

LGTM

@czerwonk czerwonk merged commit 3123fbe into czerwonk:main Sep 20, 2023
3 checks passed
@Gaste8 Gaste8 deleted the netdev-517/add-interface-type,-product-and-serial-number branch January 31, 2024 12:01
@Gaste8 Gaste8 restored the netdev-517/add-interface-type,-product-and-serial-number branch February 14, 2024 09:02
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