sensu-plugins-outlyer 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -6
- data/bin/outlyer-metrics.rb +1 -1
- data/lib/sensu-plugins-outlyer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b41263ea9b41b991ed846eeb0d544dfd6b4b384
|
4
|
+
data.tar.gz: 5bd699e32ecb8e45aa94fbd38eae7690cc206354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98bd3778aeba1f2ba3d54cd3d796d7d8bc2c149408a98d877ba9655e499caea21ff483a57573b95348c598eaf63b77cbaced494ed63aacc6521904ff5ba1aa92
|
7
|
+
data.tar.gz: 4842d9d759ab1401b9b59c544f85edaec96d89b08b415765b603d8b2aeabc75ec81a5b3699b3f34841e693088ad48863616bb1912769c6c45475e0770c537918
|
data/README.md
CHANGED
@@ -34,7 +34,7 @@ Firstly install the Outlyer Sensu plugin on your Sensu machine(s) using the foll
|
|
34
34
|
command:
|
35
35
|
|
36
36
|
```bash
|
37
|
-
sensu-install outlyer
|
37
|
+
sensu-install -p outlyer
|
38
38
|
```
|
39
39
|
|
40
40
|
Next, we’ll enable the handlers by adding it to `/etc/sensu/conf.d/outlyer-handlers.json`:
|
@@ -63,14 +63,13 @@ You can also add the optional `-t` parameter to the handler command to change th
|
|
63
63
|
timeout for Outlyer API requests from 5 seconds. This is useful if you notice the handler
|
64
64
|
timing out as your checks send more metrics creating larger payloads.
|
65
65
|
|
66
|
-
Finally add your Outlyer API configuration at
|
66
|
+
Finally add your Outlyer API configuration at `/etc/sensu/conf.d/outlyer.json`:
|
67
67
|
|
68
68
|
```json
|
69
69
|
{
|
70
70
|
"outlyer": {
|
71
71
|
"api_key": "<API_KEY>",
|
72
|
-
"account": "<ACCOUNT_NAME>"
|
73
|
-
"tags": []
|
72
|
+
"account": "<ACCOUNT_NAME>"
|
74
73
|
}
|
75
74
|
}
|
76
75
|
```
|
@@ -79,12 +78,11 @@ Where:
|
|
79
78
|
|
80
79
|
* **api_key**: Your user's API key generated under user settings
|
81
80
|
* **account**: The unique account name of the account you want to push metrics too (you will see this in the URL when using the app)
|
82
|
-
* **tags**: An array of tags you want to add to all your metrics from Sensu, i.e. region: us-west-1
|
83
81
|
|
84
82
|
Finally restart your Sensu server so the new handler is enabled:
|
85
83
|
|
86
84
|
```bash
|
87
|
-
|
85
|
+
systemctl restart sensu-{server,api}
|
88
86
|
```
|
89
87
|
|
90
88
|
You will need to add the handler to all the checks you want metrics sent to Outlyer for by adding
|
@@ -92,9 +90,22 @@ You will need to add the handler to all the checks you want metrics sent to Outl
|
|
92
90
|
your checks have been configured to use the Outlyer handler you should start seeing all your
|
93
91
|
metrics from your configured Sensu checks appearing in Outlyer shortly afterwards.
|
94
92
|
|
93
|
+
Also ensure any Sensu checks that send metrics have type `metric` otherwise the output will not
|
94
|
+
be processed everytime the check runs.
|
95
|
+
|
95
96
|
Please read the Metrics Collected section of this guide to understand how your check metrics
|
96
97
|
are sent to Outlyer.
|
97
98
|
|
99
|
+
## Troubleshooting
|
100
|
+
|
101
|
+
If you don't see metrics appearing in Outlyer after enabling the handlers and checks
|
102
|
+
you should use the following command to view the Sensu server logs to see if any
|
103
|
+
errors are being output by the hander:
|
104
|
+
|
105
|
+
```bash
|
106
|
+
tail -f /var/log/sensu/sensu-server.log | grep outlyer
|
107
|
+
```
|
108
|
+
|
98
109
|
== Changelog ==
|
99
110
|
|
100
111
|
|Version|Release Date|Description |
|
data/bin/outlyer-metrics.rb
CHANGED
@@ -81,9 +81,9 @@ class OutlyerMetrics < Sensu::Handler
|
|
81
81
|
|
82
82
|
# Add a service status metric
|
83
83
|
metrics.push(create_datapoint('service.status', check_status, timestamp, {service: "sensu.#{@check_name}"}))
|
84
|
-
puts metrics
|
85
84
|
# Post metrics to Outlyer
|
86
85
|
push_metrics(metrics)
|
86
|
+
puts "Successfully pushed #{metrics.length} metrics to Outlyer"
|
87
87
|
end
|
88
88
|
|
89
89
|
# Create a single data point
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-outlyer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dataloop Software, INC. Trading as Outlyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|