Skip to content

Comments

Add deployment_synced metric#5816

Merged
isum merged 2 commits intomasterfrom
ion/add-deployment-synced-metric
Feb 17, 2025
Merged

Add deployment_synced metric#5816
isum merged 2 commits intomasterfrom
ion/add-deployment-synced-metric

Conversation

@isum
Copy link
Member

@isum isum commented Feb 12, 2025

This PR adds a new deployment_synced metric that indicates whether a deployment has reached the chain head since it was deployed.

Possible values for the metric:

  • 0 - means that the deployment is not synced;
  • 1 - means that the deployment is synced;

If a deployment is not running, the metric reports no value for that deployment.

Closes #5813

Example of the metric in use

deployment_synced_metric

* All values in the example are for the same subgraph deployment.

@isum isum added the metrics label Feb 12, 2025
@isum isum self-assigned this Feb 12, 2025
@isum isum marked this pull request as ready for review February 12, 2025 13:21
@isum isum requested a review from mangas February 12, 2025 14:15
@isum isum force-pushed the ion/add-deployment-synced-metric branch from 716f738 to ec3a4c4 Compare February 17, 2025 07:57
@isum isum merged commit cd39656 into master Feb 17, 2025
6 checks passed
@isum isum deleted the ion/add-deployment-synced-metric branch February 17, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add metric tracking synced status of a subgraph deployment

2 participants