fix(telemetry): count IDP template data (#11720)

# Which Problems Are Solved

The total number of configured IDPs seemed of.
We were counting only the IDP table for non-templated IDPs.

# How the Problems Are Solved

Add a count trigger migration for the IDP template table.
Entries will be counted under the existing
`ResourceCountIdentityProvider`

# Additional Changes

- none

# Additional Context

- Reported internally
- Implemented in #9979
- Related https://github.com/zitadel/zitadel/issues/9957

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Tim Möhlmann
2026-03-17 05:12:43 +00:00
committed by GitHub
co-authored by Livio Spring
parent 279f592d80
commit 921414fa16
+7
View File
@@ -81,6 +81,13 @@ func triggerSteps(db *database.DB) []migration.RepeatableMigration {
projection.IDPInstanceIDCol,
serviceping.ResourceCountIdentityProvider,
),
migration.CountTrigger(db,
projection.IDPTemplateTable,
domain.CountParentTypeInstance,
projection.IDPTemplateInstanceIDCol,
projection.IDPTemplateInstanceIDCol,
serviceping.ResourceCountIdentityProvider,
),
migration.CountTrigger(db,
projection.IDPTemplateLDAPTable,
domain.CountParentTypeInstance,