Skip to content

[receiver/ciscoosreceiver] Implement interface scrapper#43815

Merged
dmitryax merged 9 commits into
open-telemetry:mainfrom
etserend:42647-add-system-scraper
Oct 30, 2025
Merged

[receiver/ciscoosreceiver] Implement interface scrapper#43815
dmitryax merged 9 commits into
open-telemetry:mainfrom
etserend:42647-add-system-scraper

Conversation

@etserend
Copy link
Copy Markdown
Contributor

Description

Adds interface scraper to Cisco OS receiver with 9 network metrics following OpenTelemetry semantic conventions:

Link to tracking issue

#42647

Testing

  • Configuration validation and defaults
  • Factory creation and lifecycle tests
  • Interface parser (status, validation, formatting)
  • Fixed metric names to match OpenTelemetry conventions
  • Multi-device configuration tests

Documentation

  • Complete README with metric specifications and examples
  • All metrics defined in metadata.yaml
  • Generated documentation.md with attribute details

Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/documentation.md Outdated
@etserend etserend force-pushed the 42647-add-system-scraper branch from d588d01 to d24b43a Compare October 28, 2025 14:36
@github-actions github-actions Bot requested review from akats7 and antonblock October 28, 2025 14:37
@etserend etserend force-pushed the 42647-add-system-scraper branch 2 times, most recently from 2af63a5 to 0869485 Compare October 29, 2025 00:26
Copy link
Copy Markdown
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

It looks like half of the code is logging. Is it really that useful?

Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/parser.go Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/parser.go Outdated
@etserend etserend force-pushed the 42647-add-system-scraper branch 3 times, most recently from 08e35ad to 1f109cb Compare October 29, 2025 23:49
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/scraper.go Outdated
Comment thread receiver/ciscoosreceiver/internal/scraper/interfacesscraper/scraper.go Outdated
@etserend etserend force-pushed the 42647-add-system-scraper branch from c8009d2 to cdbc057 Compare October 30, 2025 16:37
@etserend etserend force-pushed the 42647-add-system-scraper branch from 8f75361 to 872e177 Compare October 30, 2025 19:17
return interfaces, nil
}

func (s *interfacesScraper) establishDeviceConnection(ctx context.Context) (*connection.RPCClient, error) {
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.

This function already exists. The connection can be created once for the whole receiver and passed down to the scrapers.

Feel free to improve it in a separate follow-up PR

@dmitryax dmitryax merged commit a1d2d29 into open-telemetry:main Oct 30, 2025
190 checks passed
@github-actions github-actions Bot added this to the next release milestone Oct 30, 2025
@otelbot
Copy link
Copy Markdown
Contributor

otelbot Bot commented Oct 30, 2025

Thank you for your contribution @etserend! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

atoulme pushed a commit that referenced this pull request Nov 5, 2025
….0 (#44067)

#### Description

The same chlog entry was added in
#43568
and
#43815,
resulting in duplicate entries in changelog and release notes.

_I'll update release notes once this is merged._
jelly-afk pushed a commit to jelly-afk/opentelemetry-collector-contrib that referenced this pull request Nov 6, 2025
…ry#43815)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds interface scraper to Cisco OS receiver with 9 network metrics
following OpenTelemetry semantic conventions:

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

open-telemetry#42647

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Configuration validation and defaults
- Factory creation and lifecycle tests
- Interface parser (status, validation, formatting)
- Fixed metric names to match OpenTelemetry conventions
- Multi-device configuration tests
- 
<!--Describe the documentation added.-->
#### Documentation
- Complete README with metric specifications and examples
- All metrics defined in metadata.yaml
- Generated documentation.md with attribute details

<!--Please delete paragraphs that you did not use before submitting.-->
jelly-afk pushed a commit to jelly-afk/opentelemetry-collector-contrib that referenced this pull request Nov 6, 2025
….0 (open-telemetry#44067)

#### Description

The same chlog entry was added in
open-telemetry#43568
and
open-telemetry#43815,
resulting in duplicate entries in changelog and release notes.

_I'll update release notes once this is merged._
dyl10s pushed a commit to dyl10s/opentelemetry-collector-contrib that referenced this pull request Nov 21, 2025
…ry#43815)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds interface scraper to Cisco OS receiver with 9 network metrics
following OpenTelemetry semantic conventions:

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

open-telemetry#42647

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Configuration validation and defaults
- Factory creation and lifecycle tests
- Interface parser (status, validation, formatting)
- Fixed metric names to match OpenTelemetry conventions
- Multi-device configuration tests
- 
<!--Describe the documentation added.-->
#### Documentation
- Complete README with metric specifications and examples
- All metrics defined in metadata.yaml
- Generated documentation.md with attribute details

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants