Bosun

[Pages:55]Bosun

#bosun

1

1: Bosun

2

2

2

Examples

2

2

2

Docker

3

2: lscount

4

4

4

4

4

Examples

4

5

4

3: lsstat

6

6

6

6

6

Examples

6

6

4: Scollector

7

7

Examples

7

PowerShell

7

GoTwitter

7

BashHadoop HDFS

8

GoMetadataStackExchange.Exceptional

9

Powershell

12

5: Scollector

14

14

Examples

14

scollector.toml

14

Scollector

14

6: Scollector

16

16

Examples

16

Linuxsystemd

16

Windows

16

Windows .NET

17

Docker

17

7:

18

18

Examples

18

Scollector init.d

18

Bosun init.d

19

Bosun systemd

21

Scollector systemd

22

TSDBRelay systemd

22

ScollectorBosunChef / Puppet / Vagrant / Ansible

22

CentOS 7scollector

22

8:

25

Examples

25

SSL Certs

25

25

25

25

26

scollector.tomlhttpunit

26

26

26

Linux Bonding Health

27

27

28

Priview

28

9: GraphGraphAll

29

29

Examples

29

29

GraphAll

29

GraphGraphAll

30

30

31

10: HTTPGetHTTPGetJSON

32

Examples

32

HTTPGetJSON

32

11:

33

33

33

Examples

33

33

CSS

34

36

12:

38

Examples

38

38

13:

39

Examples

39

NumberSet

39

SeriesSet

39

14:

40

Examples

40

t

40

40

40

40

SetnumberSetsseriesSets

40

40

41

15:

45

45

45

Examples

45

plivo

45

45

46

HTTP GET / POST

46

TwilioSMS

46

PagerDuty

47

47

16:

48

48

Examples

48

48

HipChat

48

50

You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: bosun

It is an unofficial and free Bosun ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official Bosun.

The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@



1

1: Bosun

BosunStack OverflowMIT Bosun/opt/bosun/bosun -c /opt/bosun/config/prod.conf bosun

0.3.0 2015613

0.4.0 2015918

0.5.0 2016315

Examples

BosunDSL warncrit/HTTP POST

template sample.alert { body = `Alert: {{.Alert.Name}} triggered on {{.Group.host}} Computation {{range .Computations}} {{.Text}}{{.Value}} {{end}} {{ .Graph .Alert.Vars.metric }}`

subject = {{.Last.Status}}: {{.Alert.Name}} cpu idle at {{.Alert.Vars.q | .E}}% on {{.Group.host}} }

notification sample.notification { email = alerts@

}

alert sample.alert { template = sample.template $q = avg(q("sum:rate:linux.cpu{host=*,type=idle}", "1m")) crit = $q < 40 notification = sample.notification

}

Critical: sample.alert cpu idle at 25% on hostnameCritical: sample.alert cpu idle at 25% on

hostnameCPU140""Bosun

Bosun

tsdbHost = localhost:4242 httpListen = :8070



2

smtpHost = localhost:25 emailFrom = bosun@ timeAndDate = 202,75,179,136 ledisDir = ../ledis_data checkFrequency = 5m

notification example.notification { email = alerts@ print = true

}

Bosun4242OpenTSDB8070IPlocalhost SMTP LedisRedis5

example.notification

Docker

DockerBosun

$ docker run -d -p 4242:4242 -p 80:8070 stackexchange/bosun

Bosunhttp// docker-server-ip dockerHBase / OpenTSDBBosunbosunScollectorBosun scollectorGrafanaOpenTSDBBosun

Stackexchange / BosundockerbosunBosun

Bosun



3

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches