-
Notifications
You must be signed in to change notification settings - Fork 1.5k
categraph、nightingale使用tls异常 #2574
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
Comments
把服务端、客户端的配置都贴全看看 |
服务端 配置 [Global] [Log] [HTTP] [HTTP.ShowCaptcha] [HTTP.APIForAgent] [HTTP.APIForService] [HTTP.JWTAuth] [HTTP.ProxyAuth] [HTTP.RSA] [DB] DSN = "n9e.db" [Redis] Address = "127.0.0.1:6379" RedisType = "miniredis" [Alert] [Center] [Center.AnonymousAccess] [Pushgw] [[Pushgw.Writers]] 客户端配置 [global] hostname = "" omit_hostname = false precision = "ms" interval = 15 providers = ["local"] disable_usage_report = true [global.labels] [log] max_size = 100 [writer_opt] [[writers]] basic_auth_user = "" basic_auth_pass = "" timeout = 5000 [http] [ibex] [heartbeat] url = "https://172.22.xx.xx:17000/v1/n9e/heartbeat" interval = 10 basic_auth_user = "" basic_auth_pass = "" use_tls = true timeout = 5000 |
tls 部分的配置只配置了 heartbeat 没有配置 writer,你把下面这部分拷贝到
|
按照这个配置在客户端配置后依然失败 basic_auth_user = "" basic_auth_pass = "" timeout = 5000 日志: |
你的 server.crt 和 server.key,客户端和服务端用的是一样的?这俩部分应该不同 |
那我再试试 测试过nginx和下游服务 用的同一套是ok的 |
我更新了证书 client配置[[writers]] basic_auth_user = "" basic_auth_pass = "" timeout = 5000 server配置MaxIdleConnsPerHost = 100 证书链验证正常:openssl verify -CAfile /data/test_n9e_cert/ca.crt /data/test_n9e_cert/server.crt /data/test_n9e_cert/client.crt 依然报错:Apr 16 10:16:52 iZj6cht59ryg56qharln72Z categraf: 2025/04/16 10:16:52 writer.go:96: W! push data with remote write request got error: Post "https://172.22.xx.xx:17000/prometheus/v1/write": x509: certificate signed by unknown authority response body: 能否提供一个配置TLS的最佳实践以供参考呢 |
client 只用配置 就行了
|
TLS即可 但是 尝试了client只配置 依然报错 |
./categraf --version 看看 |
./categraf --version |
用最新版本的categraf试试呢?
|
Question and Steps to reproduce
1.是否有详细的tls配置文档,包含nightingale服务端和categraph客户端的具体配置
2.按照目前的官方文档中的描述使用自签证书配置tls异常
3.目前官方的tls配置文档过于笼统
Relevant logs and configurations
Version
v8.0.0-beta.9
The text was updated successfully, but these errors were encountered: