sensu-plugins-outlyer 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9d39213feb78b60d5374d32eda1ad3020e11fda
4
- data.tar.gz: 84a8a8cb10cfdbfe8e28280219e04b880244d6a2
3
+ metadata.gz: 8b41263ea9b41b991ed846eeb0d544dfd6b4b384
4
+ data.tar.gz: 5bd699e32ecb8e45aa94fbd38eae7690cc206354
5
5
  SHA512:
6
- metadata.gz: 416334263bc3660066faa32db08ce55ea2102591f458145398944de8af8896d50f3764a23c028b253fd3d96249e45f9c993b1036f0408e86c73d4cd1d8b1032d
7
- data.tar.gz: 9e0c2857294938983196546d18fc94fc296157f1e507a685cc72d7dbc129af3bf43a0aefa3bab6c4f59608171b62ce590b28574e11605418a84a8e4db41f1d36
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 /etc/sensu/conf.d/outlyer.json:
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
- sudo systemctl restart sensu-{server,api}
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 |
@@ -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
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsOutlyer
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.1.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-12 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin