Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

监控数据 #30

Open
jc1981 opened this issue Aug 21, 2020 · 3 comments
Open

监控数据 #30

jc1981 opened this issue Aug 21, 2020 · 3 comments

Comments

@jc1981
Copy link

jc1981 commented Aug 21, 2020

查看transfer中报错
2020-08-21 14:45:36.203742 ERROR routes/query_router.go:37 index addr is nil {1597980000 1597980120 [{[192.168.22.189 192.168.22.189] proc.num [0xc0005474d0 0xc000547500]}]}

使用的命令是
curl -d '{"start":1597980000,"end":1597980120,"series":[{"endpoints":["192.168.22.189","192.168.22.189"],"metric":"proc.num","tagkv":[{"tagk":"target","tagv":["/data/joygames/jdk/bin/java"]},{"tagk":"service","tagv":["mtj-game-server"]}]}]} ' http://192.168.22.189/api/transfer/data -u root:root

@UlricQin
Copy link
Member

  • 查看所有模块的日志,看是否有线索
  • 贴一下数据库的n9e_hbs.instance表的内容

@jc1981
Copy link
Author

jc1981 commented Aug 24, 2020

-- MySQL dump 10.14 Distrib 5.5.65-MariaDB, for Linux (x86_64)

-- Host: localhost Database: n9e_hbs


-- Server version 5.5.65-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT /;
/
!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS /;
/
!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION /;
/
!40101 SET NAMES utf8 /;
/
!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE /;
/
!40103 SET TIME_ZONE='+00:00' /;
/
!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 /;
/
!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 /;
/
!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' /;
/
!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table instance

DROP TABLE IF EXISTS instance;
/*!40101 SET @saved_cs_client = @@character_set_client /;
/
!40101 SET character_set_client = utf8 /;
CREATE TABLE instance (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
module varchar(32) NOT NULL,
identity varchar(255) NOT NULL,
rpc_port varchar(16) NOT NULL,
http_port varchar(16) NOT NULL,
remark text,
ts int(10) unsigned NOT NULL,
PRIMARY KEY (id),
KEY module (module,identity,rpc_port,http_port)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/
!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table instance

LOCK TABLES instance WRITE;
/*!40000 ALTER TABLE instance DISABLE KEYS /;
INSERT INTO instance VALUES (1,'index','192.168.22.189','5831','5830','',1598251963),(2,'judge','192.168.22.189','5841','5840','',1598251961);
/
!40000 ALTER TABLE instance ENABLE KEYS /;
UNLOCK TABLES;
/
!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE /;
/
!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS /;
/
!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS /;
/
!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT /;
/
!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS /;
/
!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION /;
/
!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2020-08-24 14:52:45

mysqldump n9e_hbs.instance表的内容

@UlricQin
Copy link
Member

页面上是否可以看到相关endpoint,是否可以看到metric列表,点击metric是否可以看到图

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants