https://rancher.com/ logo
Title
f

flaky-coat-75909

06/23/2022, 10:53 AM
root@longhorn-manager:/# curl 10.43.0.3:9500/metrics
do not return all metrics for example
longhorn_instance_manager_cpu_usage_millicpu
or
longhorn_node_cpu_capacity_millicpu
Should I fetch it from other pod? on which port ?
i

icy-agency-38675

06/24/2022, 12:51 AM
For example, you can
kl exec -it longhorn-manager-xxxxxx -- curl <http://longhorn-backend:9500/metrics>
ref: https://github.com/longhorn/longhorn/issues/2817
f

flaky-coat-75909

06/24/2022, 7:54 AM
@icy-agency-38675 the ip
10.43.0.3
is longhorn-manager so it is almost the same as
curl <http://longhorn-backend:9500/metrics>
I do something like this
root@longhorn-manager-g5nck:/# while true ; do curl -s  <http://longhorn-backend:9500/metrics> | grep longhorn_node_cpu_usage_millicpu ; done
but the output is empty metric
longhorn_node_cpu_usage_millicpu
is not exported for some reason
when perform somethin like this
while true ; do curl -s  <http://longhorn-backend:9500/metrics> | grep longhorn_node_cpu ; done
I only receiving a
longhorn_node_cpu_capacity_millicpu