Questions tagged [prometheus-blackbox-exporter]

113 questions
11
votes
2 answers

Prometheus scrape /metric with custom header

I have an application that will be monitored by Prometheus, but the application need the custom header key like : x-auth-token: What should I do with prometheus.yml?
7
votes
5 answers

Probes returning zero

I've been struggling to understand why some HTTP endpoints return '0' for 'probe_success' and 'probe_http_status_code', while being perfectly able to get a "valid" response with curl. Example: curl -s…
bulkmoustache
  • 1,875
  • 3
  • 20
  • 24
6
votes
3 answers

Prometheus blackbox-exporter with endpoint authentication?

I am pretty new to the Prometheus and not sure how I am going to ping the endpoint with authentication. Not sure my problem could be solved by built-in prometheus configs, let me describe the flow I would like to achieve: (1) send http POST with…
5
votes
2 answers

Monitor k8s apps from "operator" cluster

We have several K8S clusters which we need to monitor from one operator cluster (cluster A) We are using Prometheus on each cluster to monitor the cluster itself, now in addition we want to monitor from a specific api of application which will tell…
5
votes
1 answer

How to monitor SSL certificates for a tcp endpoint using blackbox exporter

I have a requirement to monitor certificate expiry of tcp endpoints. I've tried configuring blackbox exporter to monitor tcp endpoints. But unfortunately not able to achieve proper results. We have used blackbox exporter to monitor ssl certificates…
Priyotosh deb
  • 83
  • 2
  • 8
5
votes
1 answer

How to check specific tcp port availibility with blackbox_exporter?

I want to check the availability of tcp port 1521 on the Oracle database server. but probe_success shows 0, although the port is available. Target incorrect? my config prometheus. - job_name: 'blackbox' metrics_path: /probe params: …
user_1771
  • 152
  • 1
  • 3
  • 8
5
votes
1 answer

How to ping targets using blackbox_exporter with prometheus

I'm trying to ping a list of targets using blackbox_exporter with prometheus but I seem to only be able to probe blackbox_exporters and not the actual targets I want to check. I can't find any documentation in blackbox on where to list the targets…
4
votes
1 answer

sum of rate function in prometheus

Given the following prometheus time series called requests : the vector query requests[3 seconds] is : and the rate of the vector query requests[3 seconds], rate(requests[3 sec]) (computed by the shown formula) is : My question is : what is…
4
votes
0 answers

ICMP checks with blackbox_exporter in docker

New to docker and prometheus so please point out any glaring errors in my configs...I am using blackbox_exporter and prometheus as docker containers and want to be able to run ICMP checks against some internal hosts but I'm running into this error…
4
votes
1 answer

Prometheus blackbox exporter citing several modules per job

What is the semantics of a job for a Prometheus blackbox exporter that cites more than one module under params.module? I guess it means that all modules are tried and the probe only succeeds if all of them succeed. All the examples I have come…
rookie099
  • 2,201
  • 2
  • 26
  • 52
4
votes
2 answers

Prometheus json metrics

The application I want to monitor provides an api endpoint for health checks that responds with metrics in json. As an example: $ curl https://example.com/api/stats {"status":"success","code":0,"data":{"UserCount":140,"UserCountActive":23}} I have…
blee
  • 566
  • 3
  • 6
  • 14
4
votes
0 answers

Prometheus blackbox-exporter & bearer_token renewal

Our bearer_token is valid for max. 1 h. Hence a new token has to be requested regularly. The current implementation of blackbox-exporter does not allow to configure and use a refresh token: # The bearer token for the targets. [ bearer_token:…
3
votes
2 answers

Prometheus Get a summary of down time ranges

I'm monitoring some services with blackbox_exporter and prometheus. This works great to calculate the service availability but I'm questioning myself if it is possible to get a summary of down time ranges in the last x days with PromQL? For example…
Sebi2020
  • 1,966
  • 1
  • 23
  • 40
3
votes
3 answers

Monitoring TCP endpoint using BlackBox exporter

I am trying to probe my LDAP server using the blackbox exporter using the tcp_connect module. The source is my k8s cluster. From within my cluster, I can definitely reach the ldap server debug@debug:~$ telnet global.ldap 636 Trying…
jeunii
  • 391
  • 4
  • 13
3
votes
1 answer

Dynamic targets for Prometheus in Kubernetes?

In my docker setup, I maintain targets.json file which is dynamically updated with targets to probe. The file starts empty but is appended with targets during some use case. sample targets.json [ { "targets": [ "x.x.x.x" ], …
maopuppets
  • 420
  • 3
  • 9
  • 27
1
2 3 4 5 6 7 8