Questions tagged [bosun]

Bosun is an open-source, MIT licensed, monitoring and alerting system by Stack Exchange. It has an expressive domain specific language for evaluating alerts and creating detailed notifications. It also lets you test your alerts against history for a faster development experience.

Documentation

76 questions
1
vote
1 answer

How to use NumberExpr in graphite query in bosun

I use macro to define core calculations. And I'd like to have as less params to define for the macro as possible. So, I have a macro that base it's calculations on the variable $period. Then I try to use a variable that related to period in the…
Microfed
  • 2,832
  • 22
  • 25
1
vote
1 answer

How do i get absolute values for a series set in bosun?

I have following series set which has negative values, how do i convert them positive values? Not all values in the series are negative so multiplying with -1 may be the option
1
vote
1 answer

How do i convert NumberSet group with single value to the scalar in Bosun?

I have a query which returns group with one single value and want to use it in Grafana dashboard SingleStat, but Grafana expects one value (scalar) instead of group. How to make conversion?
1
vote
1 answer

bosun lookup using multiple tags

I want notifications to be selected depending on tags. So I am using lookup. notification default { email = mailid-1 next = default timeout = 1m } notification nondefault { email = mailid-2 next = nondefault timeout =…
Amber Kulkarni
  • 424
  • 8
  • 17
1
vote
1 answer

Bosun - Get IP address of host using .GetMeta

I am trying to create a (golang) struct for handling bosun alerts sent over http. It holds alert details, most importantly, about the eth0 IP address of the corresponding host. /* This struct is defined as per the notification defined in bosun…
krish7919
  • 892
  • 2
  • 13
  • 30
1
vote
1 answer

Monitor docker containers based on labels assigned

I am using bosun+cadvisor to monitor docker containers across my mesos infrastructure. Is there any way to monitor specific docker container or containers and write an alert? Maybe using the label assigned to the containers? Because I cannot use the…
krish7919
  • 892
  • 2
  • 13
  • 30
1
vote
1 answer

What language is used by bosun?

From their quickstart guide I got this following sample alert cpu.is.too.high { template = test $metric = q("sum:rate{counter,,1}:os.cpu{host=your-system-here}", "1h", "") $avgcpu = avg($metric) crit = $avgcpu > 80 warn = $avgcpu…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
1
vote
1 answer

Bosun: only first notification being sent

I am experiencing strange behaviour with my first-time Bosun config. It seems I'm receiving mail only first time the alert is being called. I am surely misunderstanding something.. Here's my .conf file: smtpHost =…
elkarel
  • 723
  • 2
  • 7
  • 20
1
vote
3 answers

Configuring scollector to get different frequences for different collectors

I'm working on scollector and I want to have specific frequencies for different collector. For example: get info from disk usage every 5 minutes info from memory every minute iostat every 30 seconds and so on... Here is a part of the conf.toml I…
Node One
  • 33
  • 1
  • 6
1
vote
0 answers

Can't get notifications to work in Bosun

Looking for help with configuring Bosun. I can't get notifications to work. I have configured hipchat, pagerduty and (added later) print notification types, and neither works. To make things work, the hipchat one worked once or twice and I have no…
riemann
  • 435
  • 4
  • 12
1
vote
1 answer

Using scollector with bosun and not OpenTSDB

I'm trying to run scollector on my windows server and send collected data into bosun server. I'm not running any OpenTSDB server, but I read in scollectors documentation that it can send metadata into OpenTSDB or bosun. Unlike tcollector,…
Kamil Budziewski
  • 22,699
  • 14
  • 85
  • 105
1
vote
1 answer

How do I deal with timestamp in bosun configuration?

I'm trying to insert an alert in elasticsearch from bosun but I don't know how to fill the variable $timestamp (Have a look at my example) with the present time. Can I use functions in bosun.conf? I'd like something like now(). Can anybody help me,…
1
vote
1 answer

How can I export a counter that resets every restart to bosun and trust the absolute number?

I am sending a counter that can reset at any point. I sent the counter every 5 seconds but I don't reset it every 5 seconds, only when the app restarts, which is regularly. I need to be able to tell how many impressions did my server got last…
Arkaitz Jimenez
  • 22,500
  • 11
  • 75
  • 105
1
vote
1 answer

How to specify timezones for World Clock in Bosun?

How should I specify timezones for Word Clock in Bosun config? I think there was some parameter for that but I can't find reference in docs for that.
timurb
  • 5,405
  • 2
  • 22
  • 17
1
vote
1 answer

Not getting alerts but acknowledgement of the alerts on dashboard work

I have been trying to get Bosun to work with little success. Here are my problems: 1) I am able to see alerts appearing in my dashboard, but the alerts never come thru to the notification mode of my choice, be it e-mail, slack or json. 2) When I…
Wan Looi
  • 11
  • 2