Skip to content

Commit 5efeef1

Browse files
mrafi97lukepatrick
authored andcommitted
Adding watt-hour units (DataDog#22303)
* adding watt-hour units * adding changelog Signed-off-by: lukepatrick <lukephilips@gmail.com>
1 parent 9a30b12 commit 5efeef1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ddev/changelog.d/22303.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add watt-hour as valid metric units

ddev/src/ddev/cli/validate/metadata_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@
404404
'unix second',
405405
'unix millisecond',
406406
'permille',
407+
'milliwatt-hour',
408+
'watt-hour',
409+
'kilowatt-hour',
407410
}
408411

409412
ALLOWED_PREFIXES = ('system.', 'jvm.', 'http.', 'datadog.', 'sftp.', 'process.', 'runtime.', 'otelcol_')

0 commit comments

Comments
 (0)