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

feat: add metrics in Stage and Service Status #440

Merged
merged 2 commits into from
Sep 12, 2023
Merged

feat: add metrics in Stage and Service Status #440

merged 2 commits into from
Sep 12, 2023

Conversation

pggb25
Copy link
Contributor

@pggb25 pggb25 commented Sep 7, 2023

No description provided.

@pggb25 pggb25 force-pushed the feat/time-info branch 3 times, most recently from 2cb1d9a to 4e26828 Compare September 7, 2023 14:12
@pggb25 pggb25 added the enhancement Improvment on existing feature label Sep 8, 2023
@@ -0,0 +1,16 @@
type: string
enum:
- TOTAL
Copy link
Contributor

Choose a reason for hiding this comment

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

what if we move the "total" as a field instead of a metric? it would avoid to look for the right element and have a "detail" field with all the info

"stage":{
"id": "9h93h9rfh9h3hr"
"name":"stage"
"state": SUCCESS
"metrics": {
"total_time": 10s,
"detail":[
{
"step_name": "PROVISION_BUILDER",
"status": "SUCCESS",
"duration_sec": 14
},
...
]
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

same on the app side. the "state" assigned to the TOTAL step can't be different from the "state" of the app . So I don't think it's a good idea to have the "Total" as an object in a metric array

Copy link
Contributor

Choose a reason for hiding this comment

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

image

…may not be set if the deployment is not completed yet.

Possible for the Web Socket use case.
@pggb25 pggb25 merged commit 54002ad into main Sep 12, 2023
8 checks passed
@pggb25 pggb25 deleted the feat/time-info branch September 12, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvment on existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants