bosun | Time Series Alerting Framework | Monitoring library
kandi X-RAY | bosun Summary
kandi X-RAY | bosun Summary
Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent. Learn more at bosun.org.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bosun
bosun Key Features
bosun Examples and Code Snippets
Community Discussions
Trending Discussions on bosun
QUESTION
I've a collection of ranks in ship. It has rank and type.
Some of the ranks and their corresponding types are:
- BOSUN -> Crew
- OS -> Crew
- FITTER -> Crew
and some other officer types. User can edit both rank and types(If there's typo or the rank is in wrong type). But I just find the correct mongoose way to do so. This is what I've tried
...ANSWER
Answered 2021-Mar-12 at 12:12please try to update using the following:
QUESTION
When I try to add IntArrays in my codes, the Android Studio gives me these errors:
...ANSWER
Answered 2020-Feb-03 at 21:40I had the same problem and I discovered that this is a bug of Kotlin library. (I am so serious.) You cannot call intArrayOf()
method.
I am sure that you are using Windows 10 Single Language Turkish. (I was using the same operating system.) Kotlin's some libraries cannot work on Turkish operating system. You can check this issue on YouTrack.
You can solve your problem with installing Windows 10 Pro English or Windows 10 Single Language English. I do not know any other approach right now. (You can open new issue on Kotlin website.)
This bug took from me 30 days. You can check my related question about this Kotlin bug.
QUESTION
I'm using bosun to monitor a metric that should be non-zero most of the working day, but is ok to be zero/unavailable during the night.
...ANSWER
Answered 2019-Dec-11 at 14:06If you're really not interested whether or not your alert condition is met during certain times, you could introduce an additional condition to your alerts and make use of the epoch()
function. epoch()
returns the current timestamp at the evaluation of the alerts. Then add that to the crit
or warn
condition. Something like this will work:
QUESTION
I get the following error while attempting to use the "save hook" functionality in Bosun -
failed to call save hook: fork/exec /tools/bosun/bin/save-hook: exec format error. Restoring config: successful
The file is executable and I've removed all logic from it, and the error still occurs.
Should the file return anything? Or is this a bug?
The documentation indicates it should be successful as long as the hook exits ok.
ANSWER
Answered 2017-Dec-07 at 20:07I would guess the OS is not accepting this as a proper executable?
If a binary, did you compile it on the same system, or make sure your cross compiled it for the right architecture?
If a script, does your script have the bang line at the start, for example
#!/bin/bash
?
QUESTION
I'm using Bosun to gather information about the average response time of a hard disk (win.disk.duration
), it produces a graph such as:
I understand that this is showing the rate of change of the WMI reported value, AvgDiskSecPerRead
.
What I want to do is downsample this calculated value taking the max over a time period. However if I set a downsample of Max
with a window of 5m
I get this:
Note the Y-axis scale change.
How can I downsample the rate to get the results I'm expecting (or why doesn't what i'm asking for make sense)?
...ANSWER
Answered 2017-Aug-10 at 07:24It seems that this transformation is about applying aggregation to the first derivative. Here's an example using win.disk.duration
metric from scollector but on a different backend.
- Raw data represents a counter with reset.
- First derivative calculates the rate of change over a user-defined interval (1 second). Negative delta is handled as a reset by default, but this behavior can be controlled with
rate-counter=true|false
parameter. - The aggregation function
max
is applied to the rate over a user-defined period (5 minutes).
I would recommend using 95 percentile function instead of max
however. The p95
statistic allows you to discards infrequent spikes from analysis.
Disclaimer: I work for Axibase.
QUESTION
hello i really want to use bosun/tsdbrelay/opentsdb with the telegraf collector, as it gets all the metrics we want to monitor out of the box. i allready have a small setup to push metrics from 5 servers to bosun for indexing and opentsdb for storage.
i used the haproxy configs from kyle brandts bosun infrastructure blog to make the tsdbs ha-ready
but bosun is showing that it cannot use the auto-type for metrics, and also in the primary stats view does not show any graphs for cpu / mem etc.
what can i provide that the graphs show up.
kind regards.
...ANSWER
Answered 2017-May-11 at 13:17Both of these features are mostly scollector specific. The "host" view (I've considered ripping that out, it was done in the early days, better to use something like grafana) depends on scollector specific metrics such as os.cpu
.
As far as "Auto" for rate vs gauge, that is also metadata that comes from scollector and sent to bosun. If you want to try to mimic the behavior see https://github.com/bosun-monitor/bosun/blob/master/metadata/metadata.go#L30 and https://github.com/bosun-monitor/bosun/blob/master/metadata/metadata.go#L195 - you would need to create at least the "rate" key for each metric you are getting from telegraph.
QUESTION
I am writing a Bosun expression in order to get the number of 2xx responses in a service like:
...ANSWER
Answered 2017-Apr-12 at 13:28Since q()
is specific to querying OpenTSDB, it uses the same syntax. The basic syntax for what you put would be to use a pipe symbol: ungroup(avg(q("sum:metric.name.hrsp_2xx{region=eu-west-1|eu-central-one}", "1m", "")))
.
If you have version 2.2 set to true you can also use more advanced features of the filters as documented in the OpenTSDB documentation (i.e. host=literal_or(web01|web02|web03)
). The main advantage is that OpenTSDB added the ability to aggregate a subset of tag values instead of all or nothing. The Graph page in Bosun also helps you generate the queries for OpenTSDB.
QUESTION
I'm running bosun
to alert against an elasticsearch
data set.
The scenario is that there's a number of cron jobs that do various things. If these execute successfully, they will log a success message. If they die / fail to run for whatever reason and fail to log the success message, we need to know about it.
My question is how to get a 0
result if no record is found, rather than null
. Here's the basic query:
ANSWER
Answered 2017-Mar-22 at 18:23In your situation there are 3 aspects to monitor:
- Have the jobs run
- Did the jobs run with a successful result
- Did the jobs run with a unsuccessful result
Elastic doesn't matter in this case, so I have simulated the responses with the series
function:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bosun
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page