mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 14:37:34 +00:00
fix(service ping): correct endpoint, validate and randomize default interval (#10166)
# Which Problems Are Solved The production endpoint of the service ping was wrong. Additionally we discussed in the sprint review, that we could randomize the default interval to prevent all systems to report data at the very same time and also require a minimal interval. # How the Problems Are Solved - fixed the endpoint - If the interval is set to @daily (default), we generate a random time (minute, hour) as a cron format. - Check if the interval is more than 30min and return an error if not. - Fixed yaml indent on `ResourceCount` # Additional Changes None # Additional Context as discussed internally
This commit is contained in:
@@ -1210,11 +1210,13 @@ ServicePing:
|
||||
# By setting Enabled to false, the service ping is disabled completely.
|
||||
Enabled: true # ZITADEL_SERVICEPING_ENABLED
|
||||
# The endpoint to which the reports are sent. The endpoint is used as a base path. Individual reports are sent to the endpoint with a specific path.
|
||||
Endpoint: "https://zitadel.cloud/api/ping" # ZITADEL_SERVICEPING_ENDPOINT
|
||||
Endpoint: "https://zitadel.com/api/ping" # ZITADEL_SERVICEPING_ENDPOINT
|
||||
# Interval at which the service ping is sent to the endpoint.
|
||||
# The interval is in the format of a cron expression.
|
||||
# By default, it is set to every day at midnight:
|
||||
Interval: "0 0 * * *" # ZITADEL_SERVICEPING_INTERVAL
|
||||
# By default, it is set to every daily.
|
||||
# Note that if the interval is set to `@daily`, we randomize the time to prevent all systems from sending their reports at the same time.
|
||||
# If you want to send the service ping at a specific time, you can set the interval to a cron expression like "@midnight" or "15 4 * * *".
|
||||
Interval: "@daily" # ZITADEL_SERVICEPING_INTERVAL
|
||||
# Maximum number of attempts for each individual report to be sent.
|
||||
# If one report fails, it will be retried up to this number of times.
|
||||
# Other reports will still be handled in parallel and have their own retry count.
|
||||
@@ -1231,8 +1233,9 @@ ServicePing:
|
||||
# ResourceCount is a periodic report of the number of resources in ZITADEL.
|
||||
# This includes the number of users, organizations, projects, and other resources.
|
||||
ResourceCount:
|
||||
Enabled: true # ZITADEL_SERVICEPING_TELEMETRY_RESOURCECOUNT_ENABLED
|
||||
BulkSize: 10000 # ZITADEL_SERVICEPING_TELEMETRY_RESOURCECOUNT_BULKSIZE
|
||||
Enabled: true # ZITADEL_SERVICEPING_TELEMETRY_RESOURCECOUNT_ENABLED
|
||||
# The number of counts that are sent in one batch.
|
||||
BulkSize: 10000 # ZITADEL_SERVICEPING_TELEMETRY_RESOURCECOUNT_BULKSIZE
|
||||
|
||||
InternalAuthZ:
|
||||
# Configure the RolePermissionMappings by environment variable using JSON notation:
|
||||
|
Reference in New Issue
Block a user