Initial draft for sending skaffold metrics using metadata event#3966
Initial draft for sending skaffold metrics using metadata event#3966tejal29 merged 6 commits intoGoogleContainerTools:masterfrom
Conversation
Codecov Report
|
0ec0025 to
aefa9e2
Compare
nkubala
left a comment
There was a problem hiding this comment.
looks like a good starting point! i suspect we'll want to add more information to these events but that can come later.
| KUBECTL = 3; | ||
| } | ||
|
|
||
| enum ClusterType { |
There was a problem hiding this comment.
seems like we might want to list out some of the other common k8s cluster providers here. otherwise users are going to see "Cluster Type: Other" which doesn't seem that useful?
There was a problem hiding this comment.
so for Privacy concerns, we can't make a distinction which "Other" or competitor cloud provider service users are using :)
There was a problem hiding this comment.
Can we differentiate with other opensource distributions? (k3d, microk8s, ...?)
yes. I am thinking of adding those as we see appropriate later in the free "key/value" map. Also, note for every field we add, we need to go trough approval process. For now, these should be apt for metrics we are interested in short term. |
briandealwis
left a comment
There was a problem hiding this comment.
LGTM. But do we also want to record the build command (dev, debug, build, deploy)?
| "github.com/GoogleContainerTools/skaffold/proto" | ||
| ) | ||
|
|
||
| func initializeMetadata(p latest.Pipeline, kubeContext string) *proto.Metadata { |
There was a problem hiding this comment.
WDYT of including a hash of the pipeline? That would let us tell if the user re-ran or if they made a change.
There was a problem hiding this comment.
oh this is an interesting idea. you could even just translate that to a isPipelineChange boolean or something.
| Deployers: []*proto.DeployMetadata_Deployer{{Type: proto.DeployerType_KUSTOMIZE, Count: 1}}, | ||
| }, | ||
| }, | ||
| }, |
There was a problem hiding this comment.
Worth adding a no-builders no-deployers case?
| KUBECTL = 3; | ||
| } | ||
|
|
||
| enum ClusterType { |
There was a problem hiding this comment.
Can we differentiate with other opensource distributions? (k3d, microk8s, ...?)
no. The IDEs will provide invokation details. |
nkubala
left a comment
There was a problem hiding this comment.
LGTM, I think @briandealwis had some good ideas for enhancements though. those can come in follow up PRs though
balopat
left a comment
There was a problem hiding this comment.
we need to provide proper notices for anything metrics related
Fixes: #3967
Related: Relevant tracking issues, for context
Merge before/after: Dependent or prerequisite PRs
Description
In this Pr,
MetadataprotoBuild,Deploymetadata like number of artifacts, builders and deployers used etc.User facing changes (remove if N/A)
No.
For IDEs, Ides will now see skaffold metadata in
MetaEventFollow-up Work (remove if N/A)
yes! Will add unit tests.