[prometheus-users] ssl cert monitoring with blackbox exporter

2022-08-08 Thread nina guo
Hi, I'm using following module to monitor ssl cert, but failed following issue. tcp_cert: prober: tcp timeout: 5s tcp: tls: true preferred_ip_protocol: "ip4" tls_config: insecure_skip_verify: true curl -g 'http://1.1.1.1:9115/pro

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread nina guo
Thank you. I moved this line before the loop, but still received the same issue. On Tuesday, August 9, 2022 at 2:58:16 AM UTC+8 b...@ritcey.com wrote: > Move > > g1 = Gauge('ldap_query_success', 'LDAP query command', ['ldap_uri', > 'ldap_search_base'], registry=registry) > > before the loop

[prometheus-users] Prometheus throwing unexpected EOF for targets

2022-08-08 Thread Kirti Ranjan Parida
Hi All I have deployed prometheus with prometheus operator.Our prometheus was running on 2.15.2 and recently we have upgraded prometheus to 2.36.1 along with prometheus operator to 0.57.0. After upgrade we are getting *unexpected EOF *for targets.My issue looks simillar to the reported one

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread b...@ritcey.com
Move g1 = Gauge('ldap_query_success', 'LDAP query command', ['ldap_uri', 'ldap_search_base'], registry=registry) before the loop - you don't want to initialize it each time. On Monday, August 8, 2022 at 7:00:42 AM UTC-4 ninag...@gmail.com wrote: > Thank you I have resolved the issue. > > I a

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread nina guo
Thank you I have resolved the issue. I also tried to use the interfaces to create and record the metrics. I have tested with following codes and found that the value of the metrcis will be overrided by the last value of the metrics. For example: real situation is: service1 -> ldap_query_success

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread Stuart Clark
On 08/08/2022 09:58, nina guo wrote: But the following 3 lines should be appended to a file first, then next time override the old content. But how to make the old content be overried by previous ones? print (" # HELP ldap_query_success LDAP query command", file=open("/var/log/node_exporter/f

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread nina guo
But the following 3 lines should be appended to a file first, then next time override the old content. But how to make the old content be overried by previous ones? print (" # HELP ldap_query_success LDAP query command", file=open("/var/log/node_exporter/filecollector/ldap_query.prom", "a+"))

Re: [prometheus-users] node exporter text file collector

2022-08-08 Thread Stuart Clark
On 2022-08-08 09:14, nina guo wrote: Hi, I used the following way to output the metrics and values to a file, and let node exporter to scrape it. I have a question here, how to let the next metrics value overide the previous'? I checked .prom file, there are some metrics with same labels and s

[prometheus-users] node exporter text file collector

2022-08-08 Thread nina guo
Hi, I used the following way to output the metrics and values to a file, and let node exporter to scrape it. I have a question here, how to let the next metrics value overide the previous'? I checked .prom file, there are some metrics with same labels and same values of labels but different v