You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifying a prometheus server in the config as described in the docs does not allow setting any TLS configs and hitting prometheus servers with self-signed certificates or that require client auth fails.
The suggestion would be to update a given server block's config settngs to accept a tls config block like this:
prometheus"$name" {
uri="https://..."failover=["https://...",...]
tags=["...",...]
headers={ "...":"..." }
timeout="2m"concurrency=16rateLimit=100required=true | falseinclude=["...",...]
exclude=["...",...]
# add TLS settings, leave block empty if no TLStls {
enabled=true# default to falseskipVerify=true# default to falsecaCert="/some/path/to/my/ca.crt"clientCert="/some/path/to/my/client.crt"clientCertKey="/some/path/to/my/client.key"
}
}
These settings would just need to be used when constructing the transport fed to gzhttphere to do something like this:
Specifying a prometheus server in the config as described in the docs does not allow setting any TLS configs and hitting prometheus servers with self-signed certificates or that require client auth fails.
The suggestion would be to update a given server block's config settngs to accept a tls config block like this:
These settings would just need to be used when constructing the transport fed to
gzhttp
here to do something like this:The text was updated successfully, but these errors were encountered: