Activity log for bug #1863367

Date Who What changed Old value New value Message
2020-02-14 17:55:50 Dmitrii Shcherbakov bug added bug
2020-02-14 18:06:39 Dmitrii Shcherbakov description A charm is possible to deploy with invalid metrics.yaml: metrics: dead=beef=cafe: type: gauge description: Some strange metric As far as I can tell, only basic YAML key validation is done by the YAML parser https://github.com/juju/charm/blob/v6/metrics.go#L78-L120 Relevant discussion: https://github.com/canonical/operator/pull/140#discussion_r379481923 A charm is possible to deploy with invalid metrics.yaml: metrics:   dead=beef=cafe:     type: gauge     description: Some strange metric As far as I can tell, only basic YAML key validation is done by the YAML parser https://github.com/juju/charm/blob/v6/metrics.go#L78-L120 Relevant discussion: https://github.com/canonical/operator/pull/140#discussion_r379481923 I have not found any specific documentation on metrics keys but there doesn't seem to be a regex for them in the juju/charm package.
2020-02-14 18:07:17 Dmitrii Shcherbakov description A charm is possible to deploy with invalid metrics.yaml: metrics:   dead=beef=cafe:     type: gauge     description: Some strange metric As far as I can tell, only basic YAML key validation is done by the YAML parser https://github.com/juju/charm/blob/v6/metrics.go#L78-L120 Relevant discussion: https://github.com/canonical/operator/pull/140#discussion_r379481923 I have not found any specific documentation on metrics keys but there doesn't seem to be a regex for them in the juju/charm package. A charm is possible to deploy with invalid metrics.yaml: metrics:   dead=beef=cafe:     type: gauge     description: Some strange metric As far as I can tell, only basic YAML key validation is done by the YAML parser https://github.com/juju/charm/blob/v6/metrics.go#L78-L120 Relevant discussion: https://github.com/canonical/operator/pull/140#discussion_r379481923 I have not found any specific documentation on the format of metric keys but there doesn't seem to be a regex for them in the juju/charm package.
2020-02-18 15:34:37 Richard Harding juju: status New Triaged
2020-02-18 15:34:41 Richard Harding juju: importance Undecided Medium
2020-02-18 15:34:54 Richard Harding tags metrics
2022-11-03 21:43:52 Canonical Juju QA Bot juju: importance Medium Low
2022-11-03 21:43:53 Canonical Juju QA Bot tags metrics expirebugs-bot metrics