Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application related labels to deployment_status metric #4520

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

kanata2
Copy link
Contributor

@kanata2 kanata2 commented Jul 21, 2023

What this PR does / why we need it:
Added application_id, application_name labels to deployment_status metric.

Which issue(s) this PR fixes:

Fixes: #4475

Does this PR introduce a user-facing change?:

  • How are users affected by this change: No
  • Is this breaking change: N/A
  • How to migrate (if breaking change): N/A

Fixes: pipe-cd#4475

Signed-off-by: Naoki Kanatani <k12naoki@gmail.com>
@kanata2 kanata2 force-pushed the add-app-related-label-to-metric branch from 1868cb0 to 6177354 Compare July 21, 2023 04:52
@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (824f9c0) 30.03% compared to head (6177354) 30.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4520   +/-   ##
=======================================
  Coverage   30.03%   30.03%           
=======================================
  Files         220      220           
  Lines       25761    25761           
=======================================
  Hits         7737     7737           
  Misses      17379    17379           
  Partials      645      645           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@kentakozuka kentakozuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you soooo much 🎉

@kentakozuka kentakozuka merged commit 01df30e into pipe-cd:master Jul 21, 2023
13 checks passed
@@ -189,7 +189,7 @@ func (p *planner) Run(ctx context.Context) error {
}

defer func() {
controllermetrics.UpdateDeploymentStatus(p.deployment.Id, p.doneDeploymentStatus, p.deployment.Kind, p.deployment.PlatformProvider)
controllermetrics.UpdateDeploymentStatus(p.deployment, p.deployment.Status)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kentakozuka should it p.doneDeploymentStatus instead? 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out!
Let me fix it 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry... 😢

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No prob. It was my fault too.

@kanata2 kanata2 deleted the add-app-related-label-to-metric branch July 24, 2023 01:36
khanhtc1202 pushed a commit that referenced this pull request Jul 26, 2023
Fixes: #4475

Signed-off-by: Naoki Kanatani <k12naoki@gmail.com>
khanhtc1202 added a commit that referenced this pull request Jul 26, 2023
* Release v0.44.1 (#4448)
---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Release v0.44.2 (#4486)

* Release v0.44.2

* Add release blog

---------

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Add application related labels to deployment_status metric (#4520)

Fixes: #4475

* Fix deployment status use an incorrect status (#4521)

* Disable terraform drift detection (#4522)

* Add driftDetectionEnabled to terraform provider config

* Fix docs and comments

---------

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>
Signed-off-by: Naoki Kanatani <k12naoki@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>
Signed-off-by: Naoki Kanatani <k12naoki@gmail.com>
@github-actions github-actions bot mentioned this pull request Aug 23, 2023
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 application related labels to deployment metrics
3 participants