getting “no metrics to serve” is normal for a minute or two after the pod comes up, when it hasn’t scraped the nodes yet. It should not continue after that. Note that the metrics are not persisted across pod restarts - they’re only stored in memory. So it’s normal to see that error every time the pod restarts.
c
chilly-nail-66007
11/04/2024, 7:33 PM
I waited for few days before I made the change and there was no metrics. Once the change is made i see metrics within few minutes. I am using k3s version v1.30.5+k3s1
c
creamy-pencil-82913
11/04/2024, 7:33 PM
that flag really isn’t going to make a difference. I would probably add --debug and see why it’s failing to scrape, and then resolve that.