Hi. I am just now able to get my head around the working of textfile collector. Can someone explain or provide a good link to understand its working?Thanks!
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/19715622-31e6-402e-8497-49448f6f0b95%40googlegroups.com.
Just drop a text file with data in Prometheus format and pass it as a command line arguments on your node exporter.
On Sat, Mar 7, 2020, 11:01 AM Yagyansh S. Kumar <yagyans...@gmail.com> wrote:
--Hi. I am just now able to get my head around the working of textfile collector. Can someone explain or provide a good link to understand its working?Thanks!
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 promethe...@googlegroups.com.
Is it necessary that the output should be a float value? What if I want to scrape something else?For eg. I want to scrape the version of VMWare-Tools running in the VM. I have stored that in a file in Prometheus format but I am getting the below error:text format parsing error in line 1: expected float as value, got "'10.3.10.10540'"The bold is the output that I need to push to prometheus.
Prometheus only deals in floats, but labels can be any string.
So for this case it's common to set the value to "1" and then
have a "version" tag.
--
On Sunday, March 8, 2020 at 12:01:35 AM UTC+5:30, Murali Krishna Kanagala wrote:Just drop a text file with data in Prometheus format and pass it as a command line arguments on your node exporter.
On Sat, Mar 7, 2020, 11:01 AM Yagyansh S. Kumar <yagyans...@gmail.com> wrote:
--Hi. I am just now able to get my head around the working of textfile collector. Can someone explain or provide a good link to understand its working?
Thanks!
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 promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/19715622-31e6-402e-8497-49448f6f0b95%40googlegroups.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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/71c47c5f-2c24-4714-a675-c3368b81086b%40googlegroups.com.
-- Stuart Clark
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6f8cccd6-b8b2-4455-9cb0-6d5dd0188368%40googlegroups.com.
On 07/03/2020 20:16, Yagyansh S. Kumar wrote:
Is it necessary that the output should be a float value? What if I want to scrape something else?For eg. I want to scrape the version of VMWare-Tools running in the VM. I have stored that in a file in Prometheus format but I am getting the below error:text format parsing error in line 1: expected float as value, got "'10.3.10.10540'"The bold is the output that I need to push to prometheus.
Prometheus only deals in floats, but labels can be any string.
So for this case it's common to set the value to "1" and then have a "version" tag.
--
On Sunday, March 8, 2020 at 12:01:35 AM UTC+5:30, Murali Krishna Kanagala wrote:Just drop a text file with data in Prometheus format and pass it as a command line arguments on your node exporter.
On Sat, Mar 7, 2020, 11:01 AM Yagyansh S. Kumar <yagyans...@gmail.com> wrote:
--Hi. I am just now able to get my head around the working of textfile collector. Can someone explain or provide a good link to understand its working?
Thanks!
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 promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/19715622-31e6-402e-8497-49448f6f0b95%40googlegroups.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 promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/71c47c5f-2c24-4714-a675-c3368b81086b%40googlegroups.com.
-- Stuart Clark