Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Metrics at the AppWrapper granularity #118

Closed
@ronensc

Description

@ronensc

It could be beneficial to introduce metrics at the granularity of AppWrappers.
For metrics such as consumed memory, this approach would enable us to aggregate data on AppWrappers, providing the total memory consumption across all nodes for a specific AppWrapper. Additionally, we could aggregate on nodes to identify overloaded nodes.
Assuming we can relate AppWrappers to users, this would also allow us to obtain resource consumption metrics per user.

For example:

used_memory{appwrapper="aw1",node="worker1"} 100MiB
used_memory{appwrapper="aw1",node="worker2"} 200MiB
used_memory{appwrapper="aw1",node="worker3"} 300MiB
used_memory{appwrapper="aw2",node="worker1"} 400MiB
used_memory{appwrapper="aw2",node="worker3"} 500MiB

Aggregating by AppWrapper:

sum by (appwrapper) (used_memory)

used_memory{appwrapper="aw1"} 600MiB
used_memory{appwrapper="aw2"} 900MiB

Aggregating by Node:

sum by (node) (used_memory)

used_memory{node="worker1"} 500MiB
used_memory{node="worker2"} 200MiB
used_memory{node="worker3"} 800MiB

However, a potential concern arises with high label cardinality if there are too many AppWrappers. One solution could be to implement this feature behind a feature flag, allowing operators who specifically require this functionality to utilize it.

@tardieu @dgrove-oss WDYT?

cc @eranra @rachelt44 @maia-iyer

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions