这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Redesign filter func() #1100

@kylebrandt

Description

@kylebrandt

I think I screwed up. Instead of filter working purely based on the groups existing or not existing, I think it might be better if it returns groups that exist and the value for the group (in the second argument) is not zero. That way we could do things like:

filter(q("sum:rate:os.net.pause_frames{direction=out,host=ny-nexus*,iname=*}", "10h", "8h"), avg(q("sum:rate:os.net.pause_frames{direction=out,host=ny-nexus*,iname=*}", "10h", "8h")) != 0)

instead of:

filter(q("sum:rate:os.net.pause_frames{direction=out,host=ny-nexus*,iname=*}", "10h", "8h"), limit(sort(avg(q("sum:rate:os.net.pause_frames{direction=out,host=ny-nexus*,iname=*}", "10h", "8h")) != 0, "desc"), 20))

Thoughts anyone?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions