forked from rhyolight/omg-monitor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
librato.yaml.tpl
67 lines (56 loc) · 2.02 KB
/
librato.yaml.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Stream configurations
stream:
# Which stream to use
source: libratometrics
# Which metric to use
# Can be, in principle, any Librato metric
metric: AWS.EC2.CPUUTILIZATION
# Librato credentials
credentials:
username: USERNAME
token: TOKEN
# [Optional] Monitors parameters. Have defaults if we omit it, as shown below.
parameters:
# Resolution of NuPIC RandomDistributedScalarEncoder to use
encoder_resolution: 1
# Time sleep between requests when it's in online learning
seconds_per_request: 60
# How many points to use for data smoothing when doing averaging
moving_average_window: 1
# Factor to multiply each data value when using scale transform
scaling_factor: 1
# Thresholds that triggers a POST to the webhook (if supplied)
likelihood_threshold: None
anomaly_threshold: None
# [Optional] You can override modelParams of NuPIC here. Only do that if you know
# what you're doing! Below we have some examples (notice NuPIC uses camelCase):
nupic_model_params:
spParams:
maxBoost: 2.0
tpParams:
activationThreshold: 16
# [Optional ] Domain in which you'll be running the service.
# This will be used to create links to anomalous monitors when reporting anomalies.
# If not specified we'll use "localhost".
domain: omg-monitor.ai
# [Optional] An endpoint that will receive POST request when something above
# the defined thresholds is found. We post a JSON with the following structure:
#
#{
# "sent_at": "2014-09-04T14:42:18.560047",
# "monitor": "instance_id",
# "source": "LibratometricsStream",
# "metric": "AWS.EC2.CPUUTILIZATION",
# "report": {
# "status": "Leaving anomalous state"
# "anomaly_score": 1,
# "likelihood": 0.841344746,
# "model_input": {
# "time": "2014-09-04T14:41:26",
# "value": 716
# }
# }
#}
webhook: http://localhost/listening
# [Optional] A list with instances names to monitor. If not supplied, we run everything.
monitors: [cw.ajsujasdjisad, cw.asdsdsadasdasd]