Conversation
|
Hi @mzacho. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
Ran |
|
/retest |
| macro_rules! encode_gauge { | ||
| ($self:expr, $encoder:expr, $name:tt, $help:expr) => {{ | ||
| let metric = ConstGauge::new($self.metrics.$name() as i64); | ||
| let metric_encoder = | ||
| $encoder.encode_descriptor(stringify!($name), $help, None, metric.metric_type())?; | ||
| metric.encode(metric_encoder)?; | ||
| }}; | ||
| } |
There was a problem hiding this comment.
Any chance we could avoid these macros?
There was a problem hiding this comment.
tbh inline it would also not be the worst thing in the world.
Stevenjin8
left a comment
There was a problem hiding this comment.
Other than the macros, lgtm
Self-explanatory.
Tested locally in kind, the new metrics as reported from
localhost:15020/metrics: