Dan Bunker
06/25/2024, 3:46 PM/metrics endpoint and didn’t see any answers to my questions, so I’m asking here.
I have a self-hosted pact broker, and I created an application that polls the broker’s /metrics endpoint and sends these metrics in to New Relic, where I’ve built a dashboard to show the metrics over time. This polling request happens from 2 different kubernetes pods (HA-setup), every 60 seconds (probably overkill). My new relic query simply selects the latest metrics hit and displays that number. I would expect the /metrics numbers to reflect the total accumulated since the database was created, and therefore always be increasing over time. But that’s not the case, as I’m seeing a chart like this:Dan Bunker
06/25/2024, 3:47 PMDan Bunker
06/25/2024, 3:48 PMDan Bunker
06/25/2024, 3:49 PMDan Bunker
06/25/2024, 4:04 PMPACT_BROKER_DATABASE_CLEAN_OVERWRITTEN_DATA_MAX_AGE is set to 30, and PACT_BROKER_DATABASE_CLEAN_KEEP_VERSION_SELECTORS has the max_age property set to 120, so I just don’t understand how the number could go down within a week (I haven’t had this even running since 30 days ago)Dan Bunker
06/25/2024, 4:05 PM"Results (0 seconds)","payload":{"pact_publications":{"deleted":0,"kept":156},"verification_res │
│ ults":{"deleted":9,"kept":238},"pact_versions":{"deleted":0,"kept":69},"triggered_webhooks":{"deleted":0,"kept":0}}}
I think this is the cause, I’ll take a look at my cleanup job configsDan Bunker
06/25/2024, 4:20 PMYousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
Dan Bunker
06/27/2024, 1:50 PM/metrics (especially verification successes and failures) will help give us (and upper management) an idea of how worth it it was to spend engineering resources to implement contract testing throughout the org.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
can-i-deploy and record-deployment as well? I wonder if those metrics would be additionally useful?