这是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.

lscount returns empty set instead of 0 if no documents are found #1160

@lukaspustina

Description

@lukaspustina

I'm using bosun in version 0.2.0 and the following query to check for grok parse failures:

lscount("logstash", "domain", "tags:_grokparsefailure", "5m", "5m", "") * 600

This works fine as long as there are documents with the specific tag. But if not, the result seems to be an empty set instead of 0. As a consequence, any alarm on this query never get back to normal / green.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions