Skip to content

Conversation

aritrbas
Copy link
Collaborator

@aritrbas aritrbas commented Sep 3, 2025

Added integration tests for the Prometheus exporter feature.
It starts VPP in docker, then adds fake containers and make sure that the stats are properly reported to Prometheus.
It verifies that interface stats are exported per workers for each interface as well as TCP4/TCP6/session stats from VPP.

Usage: sudo INTEGRATION_TEST=1 VPP_IMAGE=calicovpp/vpp:latest VPP_BINARY=/usr/bin/vpp go test -v ./prometheus_test.go

@aritrbas aritrbas self-assigned this Sep 3, 2025
This patch adds coverage exporting for boht unit and integration (with VPP)
tests.
- It merges 'unit' and 'integration' tests into a single pipeline, always
launching VPP if passed the VPP_BINARY envvar
- It adds a signal handler for USR2 to export coverage if built as such
- It removes the WITH_DGB option and default to always packaging gdb
with VPP.
- It adds a calicovpp/ctl image to the build pipeline

Signed-off-by: Nathan Skrzypczak <[email protected]>
@sknat sknat force-pushed the add-prometheus-test branch from d29ee71 to cccee17 Compare October 13, 2025 14:43
@sknat sknat force-pushed the add-prometheus-test branch from cccee17 to 0f9a85d Compare October 13, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants