Skip to content

Commit

Permalink
lets add some resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaleta committed Nov 20, 2020
1 parent b5064bd commit 23c0a43
Show file tree
Hide file tree
Showing 10 changed files with 616 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check_list:
sensuflow:
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand All @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Sensuflow
- name: Sensuflow with optional defaults
uses: ./
id: sensuflow
with:
Expand Down
143 changes: 143 additions & 0 deletions namespaces/test-namespace/checks/check-cpu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
type: CheckConfig
api_version: core/v2
metadata:
name: cpu
labels:
sensu.io/workflow: sensu_flow
spec:
check_hooks: null
command: check-cpu.rb
env_vars: null
handlers:
- pushover
high_flap_threshold: 0
interval: 30
low_flap_threshold: 0
output_metric_format: nagios_perfdata
output_metric_handlers: null
proxy_entity_name: ""
publish: true
round_robin: false
runtime_assets:
- sensu/sensu-ruby-runtime:0.0.10
- sensu-plugins/sensu-plugins-cpu-checks:4.1.0
stdin: false
subdue: null
subscriptions:
- linux
timeout: 10
ttl: 0
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-cpu-checks
io.sensu.bonsai.name: sensu-plugins-cpu-checks
io.sensu.bonsai.namespace: sensu-plugins
io.sensu.bonsai.tags: ruby-runtime-2.4.4
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-cpu-checks
io.sensu.bonsai.version: 4.1.0
name: sensu-plugins/sensu-plugins-cpu-checks:4.1.0
labels:
sensu.io/workflow: sensu_flow
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
headers: null
sha512: 9dd717a7a71fa78b7647b27e9bde303ebf5b14dbf6a9aef6050d30cb6e255058b1c82d1bb9e5dfdcc2ce5ae8a0804964c807500142d09beb2cffb735d93c9797
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_debian9_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
headers: null
sha512: f0435fd0f138fc1483aa7ca1c5262f336c3d758b862a2b646928f32dd4ee4785847c63d66886127819da036a7a85c4bc22f316dbdc61fc6641db90eb45559baa
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- entity.system.platform_version.split('.')[0] == '7'
headers: null
sha512: 8a018622018220323588a0d69ce0ee1e8c3ae72ad708108eb105006e1453a507289445eefb222da838b132106abf86910e2226d2148cc90ae64def9e7d887584
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_centos7_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- entity.system.platform_version.split('.')[0] == '6'
headers: null
sha512: f42be798f276d29c6076b33199f99da300f9d83d23556eba409a468d45169d2c4b58b397885ce17d78ce5a55bb867d466f3ba995b739584bd5f4957faff3c98b
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
headers: null
sha512: 7a5ad2d967d2880076f11dc0ab4abec75dc5f19542a5713cb7694db8f06b186b3834a22dda897797a3dad95ca7e1a8e95cb6b0bc074e416ed6238d861f158071
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_alpine3.8_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
headers: null
sha512: a67676f88d88ff2a9a5e08deab462035c0d129ba37ccac5b4bddafce3d61122e8395adc04036546038c7c76a217376f9600804d531e6139cec69460c746f11f9
url: https://assets.bonsai.sensu.io/24e5a5d7ff0a5e63b0a6902f1224b7d4592cbdc9/sensu-plugins-cpu-checks_4.1.0_alpine_linux_amd64.tar.gz
filters: null
headers: null
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.name: sensu-ruby-runtime
io.sensu.bonsai.namespace: sensu
io.sensu.bonsai.tags: ""
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.version: 0.0.10
name: sensu/sensu-ruby-runtime:0.0.10
labels:
sensu.io/workflow: sensu_flow
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) == 6
headers: null
sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
headers: null
sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) > 6
headers: null
sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
headers: null
sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz
filters: null
headers: null

129 changes: 129 additions & 0 deletions namespaces/test-namespace/checks/check-http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
type: CheckConfig
api_version: core/v2
metadata:
name: nginx
labels:
sensu.io/workflow: sensu_flow
spec:
check_hooks: null
command: check-http.rb -u http://localhost -q 'Welcome to CentOS'
env_vars: null
handlers:
- pushover
high_flap_threshold: 0
interval: 10
low_flap_threshold: 0
output_metric_format: nagios_perfdata
output_metric_handlers: null
proxy_entity_name: ""
publish: true
round_robin: false
runtime_assets:
- sensu/sensu-ruby-runtime:0.0.10
- sensu-plugins/sensu-plugins-http:6.0.0
stdin: false
subdue: null
subscriptions:
- nginx
timeout: 10
ttl: 0
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-http
io.sensu.bonsai.name: sensu-plugins-http
io.sensu.bonsai.namespace: sensu-plugins
io.sensu.bonsai.tags: alpine, centos, debian, http, ruby-runtime-2.4.4
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-http
io.sensu.bonsai.version: 6.0.0
name: sensu-plugins/sensu-plugins-http:6.0.0
labels:
sensu.io/workflow: sensu_flow
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
sha512: ed9c3c8f1fbc37f9c856498ee77d93e2cd045993786a3b59ee76e240aa799f98dd1313672adb6ffd81a131103d401351d4434b4ea95fb40cd5cd40c8afa1ac29
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian9_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
sha512: bfa025fcda806a36673e252f693635ea9283f7ba9e1ddcfa3c541fdf7ab96e6d90746e44e3377b7d973cdc7cb3c851114ce886fd9d8ec532d7371b7a3f237fa2
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- entity.system.platform_version.split('.')[0] == '7'
sha512: eb4cb5aee521500c0580111814d909ec8ccda1a13c301578e614e932dc5420fdcd1b7da129a0d801440e433c51eb2fb7aa69df16bfaf6cdbb1ac20ed032d2063
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos7_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- entity.system.platform_version.split('.')[0] == '6'
sha512: 3f02ba8afd866ec68b50c8336263a10bd43fd29e4fb747e802bf816b11d94569e3005e808c85e9722258f67004812be367a51765095c7573e6ac91645ae02828
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
sha512: 5ce520574a8460c9bdbfe5ee0cba7dd32d58bbfe51d09803d54f61f862520dfe654a2afce4d2da9553099dc8b674dae49b722dc6725ac5f3c2e7b64aec354370
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine3.8_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
sha512: 619b32224c5d13f01360df42cb74db1118eab6b46833a93a6da2005638e955b839567ad19147bf9bfa9154bc75f60fc05645e212e75a22430b472a50eb90b655
url: https://assets.bonsai.sensu.io/33783747d3af1939808944c2253c262d9d5b3fb7/sensu-plugins-http_6.0.0_alpine_linux_amd64.tar.gz
---
type: Asset
api_version: core/v2
metadata:
annotations:
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.name: sensu-ruby-runtime
io.sensu.bonsai.namespace: sensu
io.sensu.bonsai.tags: ""
io.sensu.bonsai.tier: Community
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime
io.sensu.bonsai.version: 0.0.10
name: sensu/sensu-ruby-runtime:0.0.10
labels:
sensu.io/workflow: sensu_flow
spec:
builds:
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) == 6
sha512: cbee19124b7007342ce37ff9dfd4a1dde03beb1e87e61ca2aef606a7ad3c9bd0bba4e53873c07afa5ac46b0861967a9224511b4504dadb1a5e8fb687e9495304
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos6_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'debian'
sha512: a28952fd93fc63db1f8988c7bc40b0ad815eb9f35ef7317d6caf5d77ecfbfd824a9db54184400aa0c81c29b34cb48c7e8c6e3f17891aaf84cafa3c134266a61a
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_debian_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform_family == 'rhel'
- parseInt(entity.system.platform_version.split('.')[0]) > 6
sha512: 338b88b568a3213fa234640da2e037d1487fc3c639bc62340f2fb71eac8af9a90566cffc768d15035406ac5c049350006d73f3a07ae15f9528e1c6a9af2944cb
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_centos_linux_amd64.tar.gz
- filters:
- entity.system.os == 'linux'
- entity.system.arch == 'amd64'
- entity.system.platform == 'alpine'
- entity.system.platform_version.split('.')[0] == '3'
sha512: 8d768d1fba545898a8d09dca603457eb0018ec6829bc5f609a1ea51a2be0c4b2d13e1aa46139ecbb04873449e4c76f463f0bdfbaf2107caf37ab1c8db87d5250
url: https://assets.bonsai.sensu.io/5123017d3dadf2067fa90fc28275b92e9b586885/sensu-ruby-runtime_0.0.10_ruby-2.4.4_alpine_linux_amd64.tar.gz

19 changes: 19 additions & 0 deletions namespaces/test-namespace/checks/false.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: CheckConfig
api_version: core/v2
metadata:
name: test_false
labels:
sensu.io/workflow: sensu_flow
spec:
command: /usr/bin/false
env_vars: null
high_flap_threshold: 0
interval: 30
low_flap_threshold: 0
publish: true
round_robin: false
stdin: false
subscriptions:
- linux
timeout: 10
ttl: 0
19 changes: 19 additions & 0 deletions namespaces/test-namespace/checks/true.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: CheckConfig
api_version: core/v2
metadata:
name: test_true
labels:
sensu.io/workflow: sensu_flow
spec:
command: /usr/bin/true
env_vars: null
high_flap_threshold: 0
interval: 30
low_flap_threshold: 0
publish: true
round_robin: false
stdin: false
subscriptions:
- linux
timeout: 10
ttl: 0
30 changes: 30 additions & 0 deletions namespaces/test-namespace/filters/fatigue-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
type: EventFilter
api_version: core/v2
metadata:
name: fatigue-check
spec:
action: allow
expressions:
- fatigue_check(event)
runtime_assets:
- nixwiz/sensu-go-fatigue-check-filter:0.6.2
---
type: Asset
api_version: core/v2
metadata:
name: sensu-go-fatigue-check-filter
labels:
annotations:
io.sensu.bonsai.url: https://bonsai.sensu.io/assets/nixwiz/sensu-go-fatigue-check-filter
io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/nixwiz/sensu-go-fatigue-check-filter
io.sensu.bonsai.tier: Community
io.sensu.bonsai.version: 0.6.2
io.sensu.bonsai.namespace: nixwiz
io.sensu.bonsai.name: sensu-go-fatigue-check-filter
io.sensu.bonsai.tags: eventfilter, filter
spec:
builds:
- url: https://assets.bonsai.sensu.io/9d58cca88863fcf6fbc50c560daeb78429b6009e/sensu-go-fatigue-check-filter_0.6.2.tar.gz
sha512: da861daf54032c28d9131a3800c0a8de122f591cd2bc7b9601e11e529e63a1fd3227fe67c5e3a800164224111fbe477dadee59196287d6b2e9c183b99b03f37d
filters: []

Loading

0 comments on commit 23c0a43

Please sign in to comment.