Giter Site home page Giter Site logo

check-stackdriver-go's People

Contributors

yuukichi-nankou avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

check-stackdriver-go's Issues

"Group by" feature

Hi,

I have a metric which contains multiple metrics, as shown by the -v option.

~$ ./check_stackdriver -g 'my-project' -a 'my.json' -m 'logging.googleapis.com/user/my-custom-metric -v'

type:"logging.googleapis.com/user/my-custom-metric" labels:{key:"Status" value:"200"} labels:{key:"log" value:"nginx-logs"}
type:"gce_instance" labels:{key:"instance_id" value:"126267197000229410"} labels:{key:"project_id" value:"my-project"} labels:{key:"zone" value:"europe-west3-a"}
51
type:"logging.googleapis.com/user/my-custom-metric" labels:{key:"Status" value:"500"} labels:{key:"log" value:"nginx-logs"}
type:"gce_instance" labels:{key:"instance_id" value:"126267197000229410"} labels:{key:"project_id" value:"my-project"} labels:{key:"zone" value:"europe-west3-a"}
2
type:"logging.googleapis.com/user/my-custom-metric" labels:{key:"Status" value:"200"} labels:{key:"log" value:"nginx-logs"}
type:"gce_instance" labels:{key:"instance_id" value:"1984950316234941010"} labels:{key:"project_id" value:"my-project"} labels:{key:"zone" value:"europe-west3-a"}
34
type:"logging.googleapis.com/user/my-custom-metric" labels:{key:"Status" value:"200"} labels:{key:"log" value:"nginx-logs"}
type:"gce_instance" labels:{key:"instance_id" value:"2058431206600188100"} labels:{key:"project_id" value:"my-project"} labels:{key:"zone" value:"europe-west3-a"}
33
...

Is it possible to add the "group_by" function, for instance, to group by metric.label.Status? So then, I could alert based on current 200 status, for instance, to be less than a specified value throughout ALL the instances.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.