没有代理 设置反代 阿里fc与企业微信已连接 企业微信已信任公网ip (从企业微信发信息
查看日志chat_web_1
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:29:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.8Mi, TotalAlloc=1861.0Mi, Sys=23.4Mi, NumGC=747","level":"stat"}
{"@timestamp":"2023-03-14T11:29:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:29:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:30:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.9Mi, TotalAlloc=1863.7Mi, Sys=23.4Mi, NumGC=748","level":"stat"}
{"@timestamp":"2023-03-14T11:30:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:30:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:31:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.9Mi, TotalAlloc=1866.3Mi, Sys=23.4Mi, NumGC=749","level":"stat"}
{"@timestamp":"2023-03-14T11:31:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:31:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:32:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.9Mi, TotalAlloc=1869.0Mi, Sys=23.4Mi, NumGC=750","level":"stat"}
{"@timestamp":"2023-03-14T11:32:06.815+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:32:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:33:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.0Mi, TotalAlloc=1871.6Mi, Sys=23.4Mi, NumGC=752","level":"stat"}
{"@timestamp":"2023-03-14T11:33:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:33:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:33:36.891+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"a23491558d
b1bac9","trace":"c9a2f8c68671fc0756d889677e2539d4"}
{"@timestamp":"2023-03-14T11:33:36.891+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"wecom","user_id":"QuWeiKang","msg":"暂 不 支 持 , 文 本 以 外 的 消
息 "}","header":{"Accept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, comp
ress, deflate, br"],"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3
MDQ2NDY4NzEsImlhdCI6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os
"],"Connection":["close"],"Content-Length":["105"],"Content-Type":["application/json"],"User-A
gent":["axios/1.3.4"]},"const":0},"span":"a23491558db1bac9","trace":"c9a2f8c68671fc0756d889677
e2539d4"}
{"@timestamp":"2023-03-14T11:33:36.892+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.241.87:39792 - axios/1.3.4","duration":"0.3ms","level"
:"info","span":"a23491558db1bac9","trace":"c9a2f8c68671fc0756d889677e2539d4"}
{"@timestamp":"2023-03-14T11:33:41.195+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"8214ae326c
2b5390","trace":"79ffd4282c809540c3899ff0d6b51ef9"}
{"@timestamp":"2023-03-14T11:33:41.195+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"wecom","user_id":"QuWeiKang","msg":"暂 不 支 持 , 文 本 以 外 的 消
息 "}","header":{"Accept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, comp
ress, deflate, br"],"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3
MDQ2NDY4NzEsImlhdCI6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os
"],"Connection":["close"],"Content-Length":["105"],"Content-Type":["application/json"],"User-A
gent":["axios/1.3.4"]},"const":0},"span":"8214ae326c2b5390","trace":"79ffd4282c809540c3899ff0d
6b51ef9"}
{"@timestamp":"2023-03-14T11:33:41.195+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.244.101:39794 - axios/1.3.4","duration":"0.3ms","level
":"info","span":"8214ae326c2b5390","trace":"79ffd4282c809540c3899ff0d6b51ef9"}
{"@timestamp":"2023-03-14T11:34:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.5Mi, TotalAlloc=1874.4Mi, Sys=23.4Mi, NumGC=753","level":"stat"}
{"@timestamp":"2023-03-14T11:34:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 2, pass: 2, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:34:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.3ms, 90th: 0.3ms, 99th: 0.3ms, 99.9th: 0.
3ms","level":"stat"}
{"@timestamp":"2023-03-14T11:34:49.256+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"9a6bd6db36
6ca672","trace":"1a42938b578e93e431971b8c019efe6c"}
{"@timestamp":"2023-03-14T11:34:49.256+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"openai","user_id":"QuWeiKang","msg":"#help"}","header":{"A
ccept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, compress, deflate, br"]
,"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDQ2NDY4NzEsImlhdCI
6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os"],"Connection":["c
lose"],"Content-Length":["75"],"Content-Type":["application/json"],"User-Agent":["axios/1.3.4"
]},"const":0},"span":"9a6bd6db366ca672","trace":"1a42938b578e93e431971b8c019efe6c"}
{"@timestamp":"2023-03-14T11:34:49.256+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.191.29:39796 - axios/1.3.4","duration":"0.6ms","level"
:"info","span":"9a6bd6db366ca672","trace":"1a42938b578e93e431971b8c019efe6c"}
{"@timestamp":"2023-03-14T11:34:49.258+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,model
,prompt
,created_at
,updated_at
FROM chat_config
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"1.7ms","level":"info"
,"span":"4691ba6d72be8277","trace":"0a755d12366cd13056f1ce29ca173070"}
{"@timestamp":"2023-03-14T11:34:59.000+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"59dfa202c8
372f73","trace":"29eebd6a3ab6696f42805d5fcd9ef876"}
{"@timestamp":"2023-03-14T11:34:59.001+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"openai","user_id":"QuWeiKang","msg":"#clear"}","header":{"
Accept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, compress, deflate, br"
],"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDQ2NDY4NzEsImlhdC
I6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os"],"Connection":["
close"],"Content-Length":["76"],"Content-Type":["application/json"],"User-Agent":["axios/1.3.4
"]},"const":0},"span":"59dfa202c8372f73","trace":"29eebd6a3ab6696f42805d5fcd9ef876"}
{"@timestamp":"2023-03-14T11:34:59.001+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.191.29:39798 - axios/1.3.4","duration":"0.3ms","level"
:"info","span":"59dfa202c8372f73","trace":"29eebd6a3ab6696f42805d5fcd9ef876"}
{"@timestamp":"2023-03-14T11:34:59.001+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,model
,prompt
,created_at
,updated_at
FROM chat_config
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"0.5ms","level":"info"
,"span":"a660556279ca0153","trace":"e31bdccec678fdbd4360476333966d11"}
{"@timestamp":"2023-03-14T11:34:59.002+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,req_content
,res_content
,created_at
,updated_at
FROM ch at
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"0.5ms","level":"i
nfo","span":"374424d8438210a9","trace":"59427b72a25836316bacc3d620d6ec8c"}
{"@timestamp":"2023-03-14T11:35:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.4Mi, TotalAlloc=1877.3Mi, Sys=23.4Mi, NumGC=754","level":"stat"}
{"@timestamp":"2023-03-14T11:35:06.815+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 2, pass: 2, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:35:07.909+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"fed6d7d512
59bb5b","trace":"78d6dcb78c311e66fce4b7de121cef4e"}
{"@timestamp":"2023-03-14T11:35:07.909+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"openai","user_id":"QuWeiKang","msg":"#help"}","header":{"A
ccept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, compress, deflate, br"]
,"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDQ2NDY4NzEsImlhdCI
6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os"],"Connection":["c
lose"],"Content-Length":["75"],"Content-Type":["application/json"],"User-Agent":["axios/1.3.4"
]},"const":0},"span":"fed6d7d51259bb5b","trace":"78d6dcb78c311e66fce4b7de121cef4e"}
{"@timestamp":"2023-03-14T11:35:07.909+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.240.102:39800 - axios/1.3.4","duration":"0.4ms","level
":"info","span":"fed6d7d51259bb5b","trace":"78d6dcb78c311e66fce4b7de121cef4e"}
{"@timestamp":"2023-03-14T11:35:07.910+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,model
,prompt
,created_at
,updated_at
FROM chat_config
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"0.7ms","level":"info"
,"span":"3324f6df4c09168c","trace":"c302cb51f8d09cad1cce41400c6be26c"}
{"@timestamp":"2023-03-14T11:35:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.1/s, drops: 0, avg time: 0.0ms, med: 0.5ms, 90th: 0.5ms, 99th: 0.5ms, 99.9th: 0.
5ms","level":"stat"}
{"@timestamp":"2023-03-14T11:36:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=2.7Mi, TotalAlloc=1880.0Mi, Sys=23.4Mi, NumGC=756","level":"stat"}
{"@timestamp":"2023-03-14T11:36:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 1, pass: 1, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:36:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:37:06.793+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=5.3Mi, TotalAlloc=1882.6Mi, Sys=23.4Mi, NumGC=756","level":"stat"}
{"@timestamp":"2023-03-14T11:37:06.815+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:37:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:38:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=5.2Mi, TotalAlloc=1885.2Mi, Sys=23.4Mi, NumGC=757","level":"stat"}
{"@timestamp":"2023-03-14T11:38:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:38:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:39:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=5.2Mi, TotalAlloc=1887.8Mi, Sys=23.4Mi, NumGC=758","level":"stat"}
{"@timestamp":"2023-03-14T11:39:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:39:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:39:28.955+08:00","caller":"response/response.go:63","content":"",
"level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"e4a2f2848d
5fc0b5","trace":"fc613edc07dfaa1eea845793e1019352"}
{"@timestamp":"2023-03-14T11:39:28.956+08:00","caller":"accesslog/accesslog.go:28","content":"
","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_
id":1000003,"channel":"openai","user_id":"QuWeiKang","msg":"你 好 "}","header":{"Ac
cept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, compress, deflate, br"],
"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDQ2NDY4NzEsImlhdCI6
MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os"],"Connection":["cl
ose"],"Content-Length":["76"],"Content-Type":["application/json"],"User-Agent":["axios/1.3.4"]
},"const":0},"span":"e4a2f2848d5fc0b5","trace":"fc613edc07dfaa1eea845793e1019352"}
{"@timestamp":"2023-03-14T11:39:28.956+08:00","caller":"handler/loghandler.go:160","content":"
[HTTP] 200 - POST /api/msg/push - 8.218.244.101:39802 - axios/1.3.4","duration":"0.3ms","level
":"info","span":"e4a2f2848d5fc0b5","trace":"fc613edc07dfaa1eea845793e1019352"}
{"@timestamp":"2023-03-14T11:39:28.957+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,model
,prompt
,created_at
,updated_at
FROM chat_config
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"1.5ms","level":"info"
,"span":"e3ec79ae081d1456","trace":"e2f8acb67909ce5ea4bd35ecf426ca1a"}
{"@timestamp":"2023-03-14T11:39:28.958+08:00","caller":"sqlx/stmt.go:132","content":"sql query
: SELECT id
,user
,agent_id
,req_content
,res_content
,created_at
,updated_at
FROM ch at
WHERE user = 'QuWeiKang' AND agent_id = 1000003","duration":"0.5ms","level":"info","span":
"56fe323bea6cae63","trace":"fd819230a856c43045e2dd6f7413dc82"}
request :{"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"你 是 ChatGPT, 一 个 由
OpenAI 训 练 的 大 型 语 言 模 型 , 你 旨 在 回 答 并 解 决 人 们 的 任 何 问 题 , 并 且 可 以 使 用 多 种 语 言 与 人 交 流 。 \n"}
,{"role":"user","content":"你 好 "}],"max_tokens":1200,"temperature":0.8,"frequency_penalty":0,"
presence_penalty":0,"top_p":1,"stream":false,"stop":["#"]}
response: {"id":"chatcmpl-6tpnVEmKERmm0F7OEoNpkEWJQdWLa","object":"chat.completion","created":
1678765169,"model":"gpt-3.5-turbo-0301","usage":{"prompt_tokens":69,"completion_tokens":24,"to
tal_tokens":93},"choices":[{"message":{"role":"assistant","content":"你 好 , 有 什 么 我 可 以 帮 助 你
解 决 的 问 题 吗 ? "},"finish_reason":null,"index":0}]}
{"@timestamp":"2023-03-14T11:39:31.507+08:00","caller":"sqlx/stmt.go:132","content":"sql exec:
insert into chat
(user
,agent_id
,req_content
,res_content
) values ('QuWeiKang', 10000
03, '你 好 ', '你 好 , 有 什 么 我 可 以 帮 助 你 解 决 的 问 题 吗 ? ')","duration":"2.0ms","level":"info","span
":"3c4e4e03039ab7f7","trace":"16e02f78b020c7a3a0463daffd2b190b"}
{"@timestamp":"2023-03-14T11:40:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.1Mi, TotalAlloc=1890.9Mi, Sys=23.4Mi, NumGC=760","level":"stat"}
{"@timestamp":"2023-03-14T11:40:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 1, pass: 1, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:40:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.2ms, 90th: 0.2ms, 99th: 0.2ms, 99.9th: 0.
2ms","level":"stat"}
{"@timestamp":"2023-03-14T11:41:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.9Mi, TotalAlloc=1893.6Mi, Sys=23.4Mi, NumGC=761","level":"stat"}
{"@timestamp":"2023-03-14T11:41:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:41:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:42:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.5Mi, TotalAlloc=1896.2Mi, Sys=23.4Mi, NumGC=762","level":"stat"}
{"@timestamp":"2023-03-14T11:42:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:42:14.563+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:43:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.5Mi, TotalAlloc=1898.8Mi, Sys=23.4Mi, NumGC=763","level":"stat"}
{"@timestamp":"2023-03-14T11:43:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:43:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:44:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=2.8Mi, TotalAlloc=1901.4Mi, Sys=23.4Mi, NumGC=765","level":"stat"}
{"@timestamp":"2023-03-14T11:44:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:44:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:45:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.6Mi, TotalAlloc=1904.1Mi, Sys=23.4Mi, NumGC=766","level":"stat"}
{"@timestamp":"2023-03-14T11:45:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:45:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:46:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.8Mi, TotalAlloc=1906.8Mi, Sys=23.4Mi, NumGC=767","level":"stat"}
{"@timestamp":"2023-03-14T11:46:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:46:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:47:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=4.5Mi, TotalAlloc=1909.4Mi, Sys=23.4Mi, NumGC=768","level":"stat"}
{"@timestamp":"2023-03-14T11:47:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:47:14.563+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:48:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=2.7Mi, TotalAlloc=1912.0Mi, Sys=23.4Mi, NumGC=770","level":"stat"}
{"@timestamp":"2023-03-14T11:48:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:48:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:49:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=2.7Mi, TotalAlloc=1914.7Mi, Sys=23.4Mi, NumGC=771","level":"stat"}
{"@timestamp":"2023-03-14T11:49:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:49:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-
api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.
0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:50:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m,
MEMORY: Alloc=3.6Mi, TotalAlloc=1917.4Mi, Sys=23.4Mi, NumGC=772","level":"stat"}
{"@timestamp":"2023-03-14T11:50:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(a
pi) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:50:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:50:40.092+08:00","caller":"response/response.go:63","content":"","level":"info","response":{"code":200,"msg":"成 功 ","data":{"message":"ok"}},"span":"768b238c92ddd9f2","trace":"3b3acf1ddebbd4264bab59a0172419a9"}
{"@timestamp":"2023-03-14T11:50:40.092+08:00","caller":"accesslog/accesslog.go:28","content":"","level":"info","request":{"url":"/api/msg/push","method":"POST","query":"","body":"{"agent_id":1000003,"channel":"openai","user_id":"QuWeiKang","msg":"#help"}","header":{"Accept":["application/json, text/plain, /"],"Accept-Encoding":["gzip, compress, deflate, br"],"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDQ2NDY4NzEsImlhdCI6MTY3ODcyNjg3MSwidXNlcklkIjoxfQ.2xyAMPinw1gVIwBhjSuTXE26RbMGKspu8-Lvte-46os"],"Connection":["close"],"Content-Length":["75"],"Content-Type":["application/json"],"User-Agent":["axios/1.3.4"]},"const":0},"span":"768b238c92ddd9f2","trace":"3b3acf1ddebbd4264bab59a0172419a9"}
{"@timestamp":"2023-03-14T11:50:40.092+08:00","caller":"handler/loghandler.go:160","content":"[HTTP] 200 - POST /api/msg/push - 8.218.241.87:35764 - axios/1.3.4","duration":"0.3ms","level":"info","span":"768b238c92ddd9f2","trace":"3b3acf1ddebbd4264bab59a0172419a9"}
{"@timestamp":"2023-03-14T11:50:40.094+08:00","caller":"sqlx/stmt.go:132","content":"sql query: SELECT id
,user
,agent_id
,model
,prompt
,created_at
,updated_at
FROM chat_config
WHERE user = 'QuWeiKang' AND agent_id = 1000003 ORDER BY id","duration":"1.5ms","level":"info","span":"2a2d98eca2de4a35","trace":"f75e32844d7dc97fe66ae17fbc753782"}
{"@timestamp":"2023-03-14T11:51:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m, MEMORY: Alloc=3.9Mi, TotalAlloc=1920.2Mi, Sys=23.4Mi, NumGC=773","level":"stat"}
{"@timestamp":"2023-03-14T11:51:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(api) shedding_stat [1m], cpu: 0, total: 1, pass: 1, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:51:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.3ms, 90th: 0.3ms, 99th: 0.3ms, 99.9th: 0.3ms","level":"stat"}
{"@timestamp":"2023-03-14T11:52:06.791+08:00","caller":"stat/usage.go:61","content":"CPU: 0m, MEMORY: Alloc=4.6Mi, TotalAlloc=1922.8Mi, Sys=23.4Mi, NumGC=774","level":"stat"}
{"@timestamp":"2023-03-14T11:52:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(api) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:52:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.0ms","level":"stat"}
{"@timestamp":"2023-03-14T11:53:06.792+08:00","caller":"stat/usage.go:61","content":"CPU: 0m, MEMORY: Alloc=4.5Mi, TotalAlloc=1925.4Mi, Sys=23.4Mi, NumGC=775","level":"stat"}
{"@timestamp":"2023-03-14T11:53:06.814+08:00","caller":"load/sheddingstat.go:61","content":"(api) shedding_stat [1m], cpu: 0, total: 0, pass: 0, drop: 0","level":"stat"}
{"@timestamp":"2023-03-14T11:53:14.564+08:00","caller":"stat/metrics.go:210","content":"(chat-api) - qps: 0.0/s, drops: 0, avg time: 0.0ms, med: 0.0ms, 90th: 0.0ms, 99th: 0.0ms, 99.9th: 0.0ms","level":"stat"}
反代地址 cloudflare 显示 未缓存