Hi Nina, Did you confirm that:
* Prometheus is scraping the Node Exporter * When you manually go to the /metrics endpoint of the Node Exporter, it contains your custom metrics? * The Node Exporter doesn't log any errors about the textfile collector failing? In that failure case, it should also expose a metric "node_textfile_scrape_error" with a value of 1. On Thu, Aug 4, 2022 at 12:34 PM nina guo <[email protected]> wrote: > Hi, > > I'm running a cronjob as a container inside k8s cluster, at the same time > a node exporter has been deployed on this node. > > --collector.textfile.directory=/var/log/texfilecollector also has been > defined from node export side. And the customize metrics are stored in > defined directory /var/log/texfilecollector. > > But now I failed to obtain the customized metrics with Prometheus UI. > > Could some experts provide kind help? > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/0718b988-366f-4868-821b-0621e1343a88n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/0718b988-366f-4868-821b-0621e1343a88n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Julius Volz PromLabs - promlabs.com -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAObpH5x%3DzDzZyB0ogrWNjB4vOACiYPgb8VZbmC8QLwH_A%2BXNnA%40mail.gmail.com.

