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. |
|