bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/bosun.example.toml (about)

     1  # Note: This file is tested as part of Bosun's tests. Editing outside of comments
     2  # may cause tests to fail
     3  
     4  # Scheme will be used with Hostname when links are created in templates (i.e. acknowledge links)
     5  Scheme = "https"
     6  
     7  # Hostname will be used when links are created in templates (i.e. acknowledge links)
     8  Hostname = "bosun.example.com"
     9  
    10  # The HTTP IP and Port to Listen on. Default is ":8070"
    11  HTTPListen = ":8080"
    12  
    13  # Alert checks are run by default every CheckFrequency * DefaultRunEvery. RunEvery can be overridden
    14  # by indivdual alerts. Defaults are "5m" and 1
    15  CheckFrequency = "1m"
    16  DefaultRunEvery = 5
    17  
    18  # Path to the rule file (file that contains definitions for alerts, macros, lookups, templates, and notifications)
    19  RuleFilePath = "dev.sample.conf"
    20  
    21  # timeanddate.com zones (only for use in the UI)
    22  TimeAndDate = [ 202, 75, 179, 136 ]
    23  
    24  # An API key for generating goo.gl shortlinks
    25  ShortURLKey = "aKey"
    26  
    27  # The minumum amount of alerts to create an alert group on the dashboard. Default is 5
    28  MinGroupSize = 5
    29  
    30  # How many unknown alerts in a check cycle are needed before a group notiofication is created
    31  UnknownThreshold = 5
    32  
    33  # This makes it so Bosun ping's and records a metric for every value of the "host" tag it has seen. Default is false
    34  Ping = true
    35  
    36  # How long before hosts stop being pinged if we haven't seen a tagset for that host.Alert. Default is 24 hours
    37  PingDuration = "24h"
    38  
    39  # How long certain items and metrics should be displayed in the UI if we haven't seen them. Default 3 days
    40  SearchSince = "72h"
    41  
    42  # Enable saving API endpoints and the ability to save the config via the UI. Default is false
    43  # EnableSave = true
    44  
    45  # Path to a command that will be executed on save of the rule configuration. This command is passed a filename, username, message, and vargs
    46  # If the command does not execute save operations will be canceled and the rule file will be restored
    47  CommandHookPath = "/Users/kbrandt/src/hook/hook"
    48  
    49  #Example expression under "Expression" tab
    50  ExampleExpression = 'avg(q("avg:rate:os.cpu{host=*bosun*}", "5m", "")) > 80'
    51  
    52  # Configuration to enable the OpenTSDB Backend
    53  [OpenTSDBConf]
    54  	Host = "ny-tsdb01:4242"
    55  	# Default is 2.1, certain features like filters are enabled when the version is set to 2.2
    56  	Version = 2.2
    57  	# ResponseLimit will make requests error if the response from opentsdb is larger than this setting in bytes. Default of 1MB
    58  	ResponseLimit = 25000000
    59  
    60  # Configuration for to enable to Graphite Backend
    61  [GraphiteConf]
    62  	Host = "localhost:80"
    63  	[GraphiteConf.Headers]
    64  		X-Meow = "Mix"
    65  
    66  
    67  # Configuration of hosts to enable the Elastic backend
    68  [ElasticConf]
    69     [ElasticConf.default]
    70  	Hosts = ["http://ny-lselastic01.example.com:9200", "http://ny-lselastic02.example.com:9200"]
    71  	
    72  	SimpleClient = false
    73  	
    74  	[ElasticConf.default.ClientOptions]
    75  		Enabled = false
    76  		BasicAuthUsername = ""
    77  		BasicAuthPassword = ""
    78  		Scheme = ""
    79  		SnifferEnabled = false
    80  		SnifferTimeoutStartup = 0
    81  		HealthcheckEnabled = false
    82      
    83  # Configuration for embedding the annotate service (also enables annotations if hosts are defined)
    84  	[AnnotateConf]
    85  		Hosts = ["http://ny-lselastic01.example.com:9200", "http://ny-lselastic02.example.com:9200"]
    86  
    87  	# Set SimpleClient to true if ES running in standalone mode or in a restricted environment
    88  	# SimpleClient = true
    89  
    90  	# Set the Index name that annotations are stored in. Default is annotate
    91  	# Index = annotate
    92  	# [AnnotateConf.ClientOptions]
    93  		# Enabled = true
    94  		# BasicAuthUsername = "admin"
    95  		# BasicAuthPassword = "password"
    96  
    97  		# Default http only support https
    98  		# Scheme = "https"
    99  
   100  		# Default enable
   101  		# SnifferEnabled = false
   102  
   103  		# Default enable
   104  		# HealthcheckEnabled = false
   105  
   106  
   107  # Configuration for Bosun's internal storage. Can be Ledis (Default) or Redis. Redis is recommended
   108  # for production setups. Defaults for ledis are below but would be ignored since redis takes
   109  # precedence
   110  [DBConf]
   111  	RedisHost = "localhost:6389"
   112  	LedisDir = "ledis_data"
   113  	LedisBindAddr = "127.0.0.1:9565"
   114  
   115  # Configuration to enable Bosun to be able to send email notifications
   116  [SMTPConf]
   117  	EmailFrom = "bosun@example.com"
   118  	Host = "mail.example.com"
   119  
   120  # Configuration to enable the InfluxDB backend
   121  [InfluxConf]
   122  	URL = "https://myInfluxServer:1234"
   123  	Timeout = "5m"
   124  	UnsafeSSL = true
   125  
   126  # Configuration to enable the CloudWatch backend
   127  [CloudWatchConf]
   128         Enabled = true
   129         PagesLimit = 10
   130         ExpansionLimit = 500
   131         Concurrency = 2
   132  
   133  [PromConf]
   134  	[PromConf.default]
   135  		URL = "http://127.0.0.1:9090"
   136  
   137