How to enable textfile collector in k8s with node-exporter installed by helm chart?

21 views
Skip to first unread message

Pegah Rahimian

unread,
Jun 12, 2020, 11:11:20 AM6/12/20
to Prometheus Users

Hi,

I have installed node-exporter with helm chart on k8s, and now I want to create a textfile manually or with cronjob, to export sysctl parameter/metrics of host system or containers to prometheus. I have set '--collector.textfile.directory=/home' in node-exporter containers, and added the textfile in the same directory of container. However, according to the logs, there is no such a file or directory.

Can someone help me with how the textfile collector is working in k8s?

Thanks!

rohith vallabhaneni

unread,
Jan 21, 2021, 5:19:46 AM1/21/21
to Prometheus Users

I have the same use case, could you let me know if you have solution for this.

Regards,
Rohith Vallabhaneni.
Reply all
Reply to author
Forward
0 new messages