-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[receiver/ciscoosreceiver] Add Cisco network device monitoring receiver #42742
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
[receiver/ciscoosreceiver] Add Cisco network device monitoring receiver #42742
Conversation
- Implements modular receiver for Cisco devices via SSH - Supports BGP, Environment, Facts, Interfaces, and Optics collectors - Provides cisco_exporter-compatible metrics - Includes comprehensive authentication (password/SSH keys) - Features built-in observability metrics - Supports IOS XE, NX-OS, and IOS operating systems Fixes open-telemetry#42647
|
Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib. Important reminders:
A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better! |
|
Please make the first PR according to the guidelines, just skeleton, no implementation |
|
Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib. Important reminders:
A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better! |
…t; add chloggen entry
|
|
||
| | Name | Description | Values | Optional | | ||
| | ---- | ----------- | ------ | -------- | | ||
| | host | The Cisco device hostname or IP address | Any Str | false | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there potential to use host.name/host.ip as defined in semconv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thompson-tomo You're right about the semantic conventions. Since Cisco devices usually have one management interface, using the connection endpoint works well here. That said, happy to adjust toward host.name/host.ip if it helps with overall consistency. What do you think?
receiver/ciscoosreceiver/README.md
Outdated
| | Metric | Type | Description | Attributes | | ||
| |--------|------|-------------|------------| | ||
| | `cisco.device.connected` | Gauge | Device connectivity status (1=connected, 0=disconnected) | `host` | No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this metric be generic device.connected & add the device.manufacturer attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the receiver is called ciscoosreceiver, so maybe to align to semconv if there is an effort. Otherwise, no point.
|
Please run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing. Something is wrong wit the generated metrics part. I'd suggest removing attributes and metrics section from metadata.yaml for this PR and add that later
|
Couple of CI check are still failing. |
Description
Introduce a new Cisco OS receiver to collect metrics from Cisco network devices via SSH, enabling native OpenTelemetry pipelines without external bridges or exporters.
This first PR includes structure only (no scraping implementation yet), following contrib “new component” guidelines:
//go:generate mdatagen metadata.yamlLink to tracking issue
#42647
Testing
mdatagenmake checkdoc,make checkmetadata,make checkapimake goporto,make crosslink,make gotidymake genotelcontribcol,make genoteltestbedcol,make generateDocumentation
mdatagencode generation@dmitryax - Component sponsor