The new module go.opentelemetry.io/collector/model will be created later when the internal data will
also be moved.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Updates https://github.com/open-telemetry/opentelemetry-collector/issues/2488
Important Changes:
* Rename pdata.TimestampUnixNanos to pdata.Timestamp
* Remove pdata.TimestampUnixNanos and helpers, move them of the pdata.Timestamp type.
* Fix bug around IsZero, this function should return true if the time is January 1, year 1, 00:00:00 UTC not epoch.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Need to re-generate the new internal metrics, but it is too much code to change,
so will move this to dataold (was internal anyway, so no public breaking change).
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Add more metrics to disk scraper for Windows
* Remove disk avg operation time descriptor since this can be derived from delta(disk.time) / delta(disk.ops)
* Optimise the host metrics ticker logic by having one ticker per set of scrapers that use the same collection interval, and update tests
* Removed the ability to configure different collection intervals for different scrapers within the host metrics receiver & added documentation to note that the same effect can be achieved by configuring multiple receivers
* Change the Host Metrics scrapers from "ScrapeAndAppend" to "Scrape" and do the appending in the receiver instead