pulumi-kubernetes-operator
pulumi-kubernetes-operator copied to clipboard
operator not exposing `stacks_failing` metric
What happened?
The stacks_failing metric never shows up in the pulumi-k8s-operator metrics endpoint
Steps to reproduce
- Install the pulumi-k8s-operator v1.7.0 as directed by documentation.
- Create a
Stackresource that will succeed - Wait to see that the operator successfully
ups the stack. Check that theStackstatus reportssucceeded - Change the code in the Pulumi project referenced in step 2 so that it will fail on an
up - See that the
Stackstatus reportsfailed kubectl execinto the pulumi-k8s-operator pod andcurl localhost:8383/metrics- See that there is no metric named
stacks_failing(although you will seestacks_active)
Expected Behavior
I expect to see stacks_failing in the metrics endpoint
Actual Behavior
stacks_failing is missing in the metrics endpoint
Versions used
pulumi-k8s-operator: 1.7.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
I noticed that the code is still referencing v1alpha1, but the latest Stack API version is v1: https://github.com/pulumi/pulumi-kubernetes-operator/blob/ef96c6d7cd4aeeb185e757f0f5dcac445ef62c53/pkg/controller/stack/metrics.go#L46
Fixed in #308