forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
falco-exporter.yaml
60 lines (55 loc) · 1.35 KB
/
falco-exporter.yaml
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
package:
name: falco-exporter
version: 0.8.7
epoch: 0
description: Prometheus Metrics Exporter for Falco output events
copyright:
- license: Apache-2.0
pipeline:
- uses: git-checkout
with:
expected-commit: 573cccb096fab90874747607522e30f7b09cb4b1
repository: https://github.com/falcosecurity/falco-exporter
tag: v${{package.version}}
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- uses: go/build
with:
packages: ./cmd/falco-exporter
output: falco-exporter
update:
enabled: true
github:
identifier: falcosecurity/falco-exporter
strip-prefix: v
test:
environment:
contents:
packages:
- curl
pipeline:
- name: "Verify Installation"
runs: |
set +e
falco-exporter --help
if [ $? -ne 2 ]; then
echo "expected 2, got $?"
exit 1
fi
- name: "start daemon"
uses: test/daemon-check-output
with:
start: falco-exporter
timeout: 60
setup: ""
expected_output: |
listening on
post: |
#!/bin/sh -e
response=$(curl -s localhost:9376/metrics)
if ! echo "$response" | grep -q 'promhttp_metric_handler_requests_total'; then
echo "expected metric not found"
echo "$response"
exit 1
fi