Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add falco-exporter #31218

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions falco-exporter.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading