mirror of https://github.com/grafana/grafana
Merge pull request #13571 from mtanda/cw_unit
cloudwatch: automatically set graph yaxis unit fixes #13575pull/13619/head
commit
5f69854e2a
@ -0,0 +1,30 @@ |
||||
package cloudwatch |
||||
|
||||
var cloudwatchUnitMappings = map[string]string{ |
||||
"Seconds": "s", |
||||
"Microseconds": "µs", |
||||
"Milliseconds": "ms", |
||||
"Bytes": "bytes", |
||||
"Kilobytes": "kbytes", |
||||
"Megabytes": "mbytes", |
||||
"Gigabytes": "gbytes", |
||||
//"Terabytes": "",
|
||||
"Bits": "bits", |
||||
//"Kilobits": "",
|
||||
//"Megabits": "",
|
||||
//"Gigabits": "",
|
||||
//"Terabits": "",
|
||||
"Percent": "percent", |
||||
//"Count": "",
|
||||
"Bytes/Second": "Bps", |
||||
"Kilobytes/Second": "KBs", |
||||
"Megabytes/Second": "MBs", |
||||
"Gigabytes/Second": "GBs", |
||||
//"Terabytes/Second": "",
|
||||
"Bits/Second": "bps", |
||||
"Kilobits/Second": "Kbits", |
||||
"Megabits/Second": "Mbits", |
||||
"Gigabits/Second": "Gbits", |
||||
//"Terabits/Second": "",
|
||||
//"Count/Second": "",
|
||||
} |
Loading…
Reference in new issue