-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
2/2 Extend receiverhelper scraper functions to simplify the scrape function interface #1890
2/2 Extend receiverhelper scraper functions to simplify the scrape function interface #1890
Conversation
rm := rms.At(0) | ||
ilms := rm.InstrumentationLibraryMetrics() | ||
ilms.Resize(1) | ||
ilm := ilms.At(0) |
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.
For metrics that we "scrape", would we want to fill in Instrumentation Library data btw?
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.
It's possible, see open-telemetry/opentelemetry-collector-contrib#1099
Codecov Report
@@ Coverage Diff @@
## master #1890 +/- ##
==========================================
+ Coverage 91.39% 91.40% +0.01%
==========================================
Files 284 284
Lines 16740 16784 +44
==========================================
+ Hits 15299 15341 +42
- Misses 1009 1010 +1
- Partials 432 433 +1
Continue to review full report at Codecov.
|
…rape metrics slice or resource metrics slice instead of having to return a metrics data object)
b760482
to
785218e
Compare
…#1211) Adds skeleton for Windows Performance Counters Receiver with very basic initial functionality that can read simple counters that do not include any instance into a Gauge metric - see the added README.md for more details. **Link to tracking Issue:** #1088 Note the scaffolding code makes use of the new `receiverhelper` & `scraperhelper` functions added in the Core PRs referenced below. **Depends on:** #1175, open-telemetry/opentelemetry-collector#1886, open-telemetry/opentelemetry-collector#1890
Allow users of this API to provide a scrape function that returns:
(instead of having to return a fully constructed
pdata.Metrics
object)Depends on: #1886