I've added --etcd-expose-metrics to my k3s_args in my config, but when I try to hit the service I created via the kube-prometheus-stack Helm chart I get "connection refused".
To Reproduce
Add k3s_args section to k3os config to expose metrics:
k3os:
k3s_args:
- server
- "--etcd-expose-metrics"
- "true"
Create a service to expose the metrics port (below is from the kube-prometheus-stack chart):
Version (k3OS / kernel)
v0.20.7-k3s1r0
Architecture
x86_64
Describe the bug
I've added
--etcd-expose-metrics
to my k3s_args in my config, but when I try to hit the service I created via the kube-prometheus-stack Helm chart I get "connection refused".To Reproduce
Add k3s_args section to k3os config to expose metrics:
Create a service to expose the metrics port (below is from the kube-prometheus-stack chart):
Expected behavior
The following should return the etcd metrics:
Actual behavior
Additional context
Here's my full k3os config as well as my kube-prometheus-stack HelmRelease. Currently running a single node cluster.
I've tried a few variants of the k3os config without success:
I've verified the service is up: