Prometheus Net AspNet Core not supporting http2 protocol

51 views
Skip to first unread message

swaroop joseph

unread,
Oct 6, 2021, 7:35:47 AM10/6/21
to Prometheus Users
Hi,

I am trying to configure prometheues into a .Net Core 3.1 Application. My application runs on http2 protocol and I have the below configuration in appsetting.json.
"Kestrel": { "EndpointDefaults": { "Protocols": "Http2" } },

However, I am unable to get the service up and running in prometheus UI.(I queried "up" to check the server running status). I am getting a following message in the prometheus log.

caller=tls_config.go:191 component=web msg="TLS is disabled." http2=false

If I set the protocol as Http1AndHttp2 am getting the service up and running in prometheus. But I need the service to be up when only http2 protocol is supported.

Please also find the config that I have done in my prometheus.yml

- job_name: "service" # metrics_path defaults to '/metrics' scheme: https tls_config: insecure_skip_verify: true static_configs: - targets: - localhost:5001
Reply all
Reply to author
Forward
0 new messages