-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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/dockerstatsreceiver] Improvements proposal for dockerstatsreceiver #9794
Comments
@rmfitzpatrick as the codeowner of this component, I would really appreciate your feedback and thoughts on this :) |
I've edited the description of the issue to include onboarding to |
Thanks @jamesmoessis for these suggestions (and your patience!). I am a supporter of all of them though I think we may want to have an opt-in/grace period using redundant fields/feature flags as possible.
This is similar to my initial implementation but I was requested to defer to a processor. The requested approach doesn't appear to be the de facto standard at this point* and metric groups or similar config options are used in other components so I'm still for it. The complexity of filtering can also make it very undesirable as is.
I would really like this to happen. |
Thanks @rmfitzpatrick! Yes I do agree about the op-in/grace period. It sounds like we are on the same page. I will put some PRs in in the coming weeks to gradually implement these :) |
@rmfitzpatrick another thing I recently noticed about this receiver is that it records memory metrics as gauges, while the otel spec says to record these as sums. As I'm unsure how heavily this receiver is used, how much of a pain would that be to change? Ideally they are sums. |
@jamesmoessis I'm not 100% on the spec but I think the difference between gauges and non-monotonic* sums/UpDownCounters is the implicit validity of adding their values across attributes, so I think there would be few if any side effects: https://github.com/open-telemetry/opentelemetry-specification/blob/bff2cc1365bb81b03f78a732dec822fff787e288/specification/metrics/supplementary-guidelines.md#guidelines-for-instrumentation-library-authors (Anecdotally the SignalFx exporter converts non-monotonic sums to SFx gauges.) |
After working on the receiver more, here is an updated list of further (possibly breaking) changes that we should make to uplift the receiver.
|
Update: I've raised most changes that I want to now. In the coming weeks, we will start using the featuregate-enabled scraper more heavily, building production-level confidence. Once I'm happy with the stability of it, I will slowly:
|
@jamesmoessis JFYI I created this issue some time ago #13848. Looks like it covers item 4 in your list. |
I believe we should add warning saying that it'll be enabled by default soon so it doesn't happen unexpectedly. |
@dmitryax sounds good I commented on that issue.
I will raise a PR for this next week 👍 |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This is not stale, aiming to be closed by 0.71.0 release |
#18019 closes this ticket out, once it's merged. The next step for this component would be to move it to beta, but I think there can be another ticket for this. |
Looking to invest in the
dockerstatsreceiver
, and I noticed there are a couple of improvements that we could make to the component. I am happy to implement the below improvements once discussed here.EDIT: This list below is the initial list. See my below comment for a refined list.
hostmetricsreceiver
. A set of default metrics will be on by default, and then the user has the ability to turn each metric on/off as they please. This is achieved by usingmdatagen
.memory.usage.total_cache
. This is something we need to get a better picture of the container's memory usage. This metric can be off-by-default assuming item (1) is implemented.mdatagen
since it auto generates the documentation for each metric.container_labels_to_metric_labels
would be renamed tocontainer_attributes_to_metric_attributes
alpha
with the aim to eventually move it intobeta
.The text was updated successfully, but these errors were encountered: