-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Labels
enhancementCreated by Linear-GitHub SyncCreated by Linear-GitHub Sync
Description
Description
Currently, Flipt does not expose metrics for failures when syncing flags from a Git-based backend (GitLab/GitHub). Errors are logged, but there are no dedicated metrics for monitoring sync health. This makes it difficult to detect and alert on issues such as failed syncs, delayed updates, or unexpected changes.
To improve observability and reliability, Flipt should expose detailed metrics for git sync operations, covering both successes and failures.
Proposed metrics to add:
- Last sync time
- Sync duration
- Number of flags updated/fetched
- Success/failure counts
- Failure reasons (if available)
These will allow operators to track sync behavior, set up alerts, and diagnose issues proactively.
Acceptance Criteria
- Flipt exposes metrics for Git-based backend syncs including:
- Last sync time
- Sync duration
- Number of flags updated/fetched
- Success/failure counts
- Failure reasons
- Metrics are available via the existing metrics endpoint.
- Metrics follow Prometheus naming conventions.
- Documentation is updated to describe these metrics and how to consume them.
Validation
- Deploy Flipt with a Git-based backend (GitLab/GitHub).
- Trigger a successful sync.
- Verify metrics update with new
last_sync_time
,sync_duration
, andflags_fetched/updated
values.
- Verify metrics update with new
- Trigger a failed sync (e.g., bad credentials, unreachable repo).
- Verify metrics increment
failure_count
and expose the failure reason.
- Verify metrics increment
- Query metrics endpoint and confirm all proposed metrics are present and correctly updated.
- Review updated documentation for accuracy.
markphelps
Metadata
Metadata
Assignees
Labels
enhancementCreated by Linear-GitHub SyncCreated by Linear-GitHub Sync
Type
Projects
Status
No status