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
Start emitting disk usage metrics for domains #4989
Start emitting disk usage metrics for domains #4989
Conversation
d59fa80
to
724a6ec
Compare
@decko, @dkliban, @bmbouter, I am a bit concerned about the current implementation. Will you help me resolve some of the issues?
Any inputs? |
|
I have just tested it. It did not work either. Seeing the logs inside oci-env, the metrics are emitted every 15 seconds or so. Can you verify this on your side too, please?
If we keep it on the API side, outside of the
The URLs are different, pointing to respective domains. The exported job is equal to "worker" because information about the default domain is emitted from pulpcore/pulpcore/tasking/_util.py Line 56 in 075a37f
|
It appears that I can emit data about domains from In the future (new PR), we may consider having the metrics emitted on a specific event as initially planned. On the other hand, we would need to find a balance between emitting data when a task finishes and serving on-demand content (we do not want to run heavy DB queries each time content is downloaded and streamed by content-app). Another problem to deal with is the number of duplicated data. The number of api-app processes determines the number of duplicates. This can be resolved by introducing a new option to the entrypoint command (new PR). So, users will run |
f6e51a9
to
36a4c91
Compare
Tech Previews | ||
============= | ||
|
||
The following features are currently being released as part of tech preview: | ||
|
||
* Support for Open Telemetry | ||
* Upstream replicas | ||
* Domains - Multi-Tenancy | ||
* Complex filtering |
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.
@pedro-psb, is it worth introducing the same page to the staging docs? If yes, where? How do we keep sync of newly added docs and staging docs?
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.
Thats a good point. The docs workgroup has discussed this in the early stages of planning and we've agreed that "All new doc activity will focus on new-docs. Old documentation as is kept as is until process is done."
(early planning post).
The reasons were to keep it simple and with low overhead for us. If this temporary outdated state is not acceptable we can discuss alternatives, the simple ones I can think of are:
- duplicating the content manually until we switch
- adding a banner to the actual website stating that only the new-docs is receiving updates
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.
And, where do you recommend adding this site?
https://staging-docs.pulpproject.org/pulpcore/docs/admin/learn/{tech-previews}?
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.
Do you mean in what content persona/category to put this?
I believe admin/learn/tech-preview.md
seems fine for now.
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 now" because the tech-preview listing happens in a lot of plugins, so we may think of a better general approach for this later. But this works
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.
i don't think we should have a tech-preview section. Some guides/tutorials can just mention that a feature is tech preview.
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.
oops. i misunderstood. let's make the page as was suggested above.
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.
Done. See the file staging_docs/admin/learn/tech-preview.md
. I did not add more hyperlinks because the listed features are still located under the "triage-needed!" directory.
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.
LGTM 🚀
36a4c91
to
98f18b9
Compare
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.
LGTM 🚀
|
||
The following features are currently being released as part of tech preview: | ||
|
||
- [Support for Open Telemetry](architecture.md#telemetry-support) |
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 URL should be (site:pulpcore/admin/learn/architecture/#telemetry-support)
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.
This works for me locally. Is it not working for you?
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.
I have not tried it, but I believe that we want to express all our links using the notation that i provided.
At the moment, it is not possible to destroy instruments that send metrics. Therefore, when a user removes a domain, there might be still the metrics about it emitted. A temporary workaround is to restart the pulpcore-api process to reload meters. Ref: open-telemetry/opentelemetry-specification#2232 closes pulp#4603
98f18b9
to
73e5d91
Compare
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.
LGMT 🚀 🚀 🚀
closes #4603