ArgocdServiceNotSynced #
Service {{ $labels.name }} run by argo is currently not in sync.
Alert Rule
alert: ArgocdServiceNotSynced
annotations:
description: |-
Service {{ $labels.name }} run by argo is currently not in sync.
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/argocd-internal/argocdservicenotsynced/
summary: ArgoCD service not synced (instance {{ $labels.instance }})
expr: argocd_app_info{sync_status!="Synced"} != 0
for: 15m
labels:
severity: warning
Here is a runbook for the Prometheus alert rule ArgocdServiceNotSynced
:
Meaning #
The ArgocdServiceNotSynced
alert is triggered when an ArgoCD service is not in sync. This means that the service’s desired state and actual state do not match, which may indicate a problem with the deployment or configuration of the service.
Impact #
If an ArgoCD service is not in sync, it may lead to:
- Inconsistent behavior of the service
- Errors or exceptions in the service
- Downtime or unavailability of the service
- Data inconsistencies or losses
Diagnosis #
To diagnose the issue, follow these steps:
- Check the ArgoCD logs for errors or warnings related to the service
- Verify that the service configuration is correct and up-to-date
- Check the service’s deployment status and history
- Review the ArgoCD application YAML file to ensure it is correctly configured
- Verify that the service is correctly registered with ArgoCD
Mitigation #
To mitigate the issue, follow these steps:
- Check the ArgoCD UI for any errors or warnings related to the service
- Run the command
argocd app sync <app-name>
to sync the service - Verify that the service is now in sync and running correctly
- Investigate and fix any underlying issues that may have caused the service to become out of sync
- Consider setting up automated syncing of the service to prevent this issue from happening again in the future.