diff --git a/falco-exporter.yaml b/falco-exporter.yaml new file mode 100644 index 0000000000..ee2be41ff9 --- /dev/null +++ b/falco-exporter.yaml @@ -0,0 +1,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/net@v0.23.0 + + - 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