datadog-sdk-testing 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/README.md +30 -3
- data/lib/config/manifest.json +6 -1
- data/lib/tasks/ci/hooks/pre-commit.py +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5fb9131a59cf0f46c24ec874687e493b3adf80
|
4
|
+
data.tar.gz: b5edb377bc7798f41f7bb3d8b20f83d4dd894f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909ed09e03c03d968bc8d4291538be1b867e0519d169b5c68a1e339dad3f7346863088581e10fe9c0fa4cac8d1b56833d46c577038f330c9a1e745622a0b510d
|
7
|
+
data.tar.gz: ce7b5004d266cabd19c1fd4a9cc103cb2d7d01f07a2bd3c2671a51bc5dbdee4a0cf1c4090a31249a659aa77571ee10cd93c1cc9495d0776d6dd5eecfc36d76cb
|
data/lib/config/README.md
CHANGED
@@ -7,15 +7,16 @@ Get metrics from skeleton service in real time to:
|
|
7
7
|
* Visualize and monitor skeleton states
|
8
8
|
* Be notified about skeleton failovers and events.
|
9
9
|
|
10
|
-
##
|
10
|
+
## Setup
|
11
|
+
### Installation
|
11
12
|
|
12
13
|
Install the `dd-check-skeleton` package manually or with your favorite configuration manager
|
13
14
|
|
14
|
-
|
15
|
+
### Configuration
|
15
16
|
|
16
17
|
Edit the `skeleton.yaml` file to point to your server and port, set the masters to monitor
|
17
18
|
|
18
|
-
|
19
|
+
### Validation
|
19
20
|
|
20
21
|
When you run `datadog-agent info` you should see something like the following:
|
21
22
|
|
@@ -30,3 +31,29 @@ When you run `datadog-agent info` you should see something like the following:
|
|
30
31
|
## Compatibility
|
31
32
|
|
32
33
|
The skeleton check is compatible with all major platforms
|
34
|
+
|
35
|
+
## Data Collected
|
36
|
+
### Metrics
|
37
|
+
|
38
|
+
See [metadata.csv](https://github.com/DataDog/datadog-sdk-testing/blob/master/lib/config/metadata.csv) for a list of metrics provided by this integration.
|
39
|
+
|
40
|
+
### Events
|
41
|
+
The skeleton check includes the following event at this time.
|
42
|
+
|
43
|
+
* skeleton event 1
|
44
|
+
* skeleton event foo
|
45
|
+
|
46
|
+
### Service Checks
|
47
|
+
This skeleton check tags all service checks it collects with:
|
48
|
+
|
49
|
+
* `nameserver:<nameserver_in_yaml>`
|
50
|
+
* `resolved_hostname:<hostname_in_yaml>`
|
51
|
+
|
52
|
+
`skeleton.can_resolve`:
|
53
|
+
Returns CRITICAL if the Agent fails to resolve the request, otherwise returns UP.
|
54
|
+
|
55
|
+
## Troubleshooting
|
56
|
+
Need help? Contact [Datadog Support](http://docs.datadoghq.com/help/).
|
57
|
+
|
58
|
+
## Further Reading
|
59
|
+
Learn more about infrastructure monitoring and all our integrations on [our blog](https://www.datadoghq.com/blog/)
|
data/lib/config/manifest.json
CHANGED
@@ -7,6 +7,11 @@
|
|
7
7
|
"short_description": "skeleton description.",
|
8
8
|
"guid": "guid_replaceme",
|
9
9
|
"support": "contrib",
|
10
|
+
"type":"check",
|
11
|
+
"doc_link": "link/to/the/dedicated/documentation/page",
|
10
12
|
"supported_os": ["linux","mac_os","windows"],
|
11
|
-
"
|
13
|
+
"categories":["list of categories","a complete list can be found on our documentation"],
|
14
|
+
"version": "0.1.0",
|
15
|
+
"is_public": true,
|
16
|
+
"has_logo": true
|
12
17
|
}
|
@@ -32,6 +32,7 @@ def two_fa():
|
|
32
32
|
class RequirementsAnalyzer(object):
|
33
33
|
SPECIFIERS = ['==', '!=' '<=', '>=', '<', '>']
|
34
34
|
COMMENT = '#'
|
35
|
+
HASH_SWITCH = '--hash'
|
35
36
|
|
36
37
|
def __init__(self, remote, local, patterns=['requirements.txt'],
|
37
38
|
ignorable=[], verbose=False):
|
@@ -155,6 +156,13 @@ class RequirementsAnalyzer(object):
|
|
155
156
|
mycontent = content.splitlines()
|
156
157
|
|
157
158
|
for line in mycontent:
|
159
|
+
# remove any hash reference
|
160
|
+
part = line.partition(self.HASH_SWITCH)
|
161
|
+
if part[1]:
|
162
|
+
line = part[0].strip()
|
163
|
+
if not line:
|
164
|
+
continue
|
165
|
+
|
158
166
|
line = "".join(line.split())
|
159
167
|
comment_idx = line.find(self.COMMENT)
|
160
168
|
if comment_idx >= 0:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-sdk-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Fullaondo
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-12-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: colorize
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.13
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Datadog Integration SDK testing/scaffolding facilities.
|