| 12345678910111213141516171819202122232425262728293031 |
- package main
- import (
- //"fmt"
- //"time"
- //"math"
- //"strconv"
- . "git.wecise.com/wecise/odbserver/odb"
- "gitee.com/wecisecode/util/logger"
- )
- func main() {
- class := "/cncc/entity/os/linux"
- field := "performance"
- name := "fs_used"
- labels := map[string]string{
- "appSystem": "精卫统一运维平台",
- "centerCode": "上海NPC",
- "deptName": "运维系统部",
- "mountpoint": "/",
- "originKpi": "os.linux.fs_used",
- }
- for i := 0; i < 1000; i++ {
- if h, err := NMap2ikey(class, field, name, labels); err != nil {
- logger.Error(err)
- } else {
- logger.Infof("===>%d", int64(h))
- }
- }
- }
|