Re: [prometheus-users] Re: Blackbox exporter failing after adding fail_if_body_not_matches_regexp for get or post request

2021-03-31 Thread 'Marcelo Magallón' via Prometheus Users
fail_if_body_not_matches_regexp is a list, so the second form should work. You can use the blackbox_exporter binary to validate the config: $ blackbox_exporter --config.file=config.yml --config.check ... ... level=info ts=2021-04-01T00:53:23.671Z caller=main.go:233 msg="Config file is ok

[prometheus-users] Avoiding Metric Loss of Instrumented Auto-Scaled Applications on Kubernetes

2021-03-31 Thread Al
I realize that if you have an instrumented application which is auto-scaled in Kubernetes and a pod is terminated before the next scrape interval, you can loose the values which were exposed by that instance. I also understand that in this situation, if you really want to avoid the

Re: [prometheus-users] Send resolved without slack

2021-03-31 Thread Matthias Rampke
To Prometheus, "resolved" is not a separate first class event. As long as an alert is "firing" in Prometheus, it sends a constant stream of "still firing" messages to Alertmanager. If there are multiple alerts firing, or multiple label combinations for one alert, there's more notifications. AM

Re: [prometheus-users] Exemplar Usage

2021-03-31 Thread 'Sandes de Silva' via Prometheus Users
I think I found the issue. I have to add a `content-type` header to the response that has the value `application/openmetrics-text` On Wednesday, March 31, 2021 at 3:50:06 PM UTC-4 Sandes de Silva wrote: > Hi Julien, > > Thanks for responding. I'm using the following library: >

Re: [prometheus-users] Exemplar Usage

2021-03-31 Thread 'Sandes de Silva' via Prometheus Users
Hi Julien, Thanks for responding. I'm using the following library: https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-prometheus I wanted to add support for exemplars for this library so for now I'm just modifying this method

Re: [prometheus-users] Exemplar Usage

2021-03-31 Thread Julien Pivotto
On 31 Mar 10:22, 'Sandes de Silva' via Prometheus Users wrote: > Hi, > > I'm trying to use this experimental feature and having no luck. Has anyone > here tried it? Is the usage documented anywhere? Here is my setup: > > Prom version: built locally off the main branch using docker > (rev:

[prometheus-users] Exemplar Usage

2021-03-31 Thread 'Sandes de Silva' via Prometheus Users
Hi, I'm trying to use this experimental feature and having no luck. Has anyone here tried it? Is the usage documented anywhere? Here is my setup: Prom version: built locally off the main branch using docker (rev: 763a0d805c8f7f6e2cbd49c4c2c5e250e9dc5cd2) CLI options:

Re: [prometheus-users] Prometheus Monitoring

2021-03-31 Thread Julius Volz
Hi, The meaning of metric names is defined by the application that exposes them, so there's no overall fixed 1:1 relationship between a metric name and its meaning in the Prometheus world. It depends on the code that outputs the metric. However, of course there are many metric names that are

[prometheus-users] Re: Blackbox exporter failing after adding fail_if_body_not_matches_regexp for get or post request

2021-03-31 Thread Michał Siwik
prometheus-blackbox-exporter --version blackbox_exporter, version 0.13.0+ds (branch: debian/sid, revision: 0.13.0+ds-2+b11) build user: pkg-go-maintain...@lists.alioth.debian.org build date: 20190608-09:58:04 go version: go1.11.6 Commented lines are one which cause

[prometheus-users] Blackbox exporter failing after adding fail_if_body_not_matches_regexp for get or post request

2021-03-31 Thread Michał Siwik
My system is Debian (Linux gnu0 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux) I'm using blackbox exporter binary My blackbox.yml looks like this. When i try to add fail_if_body not matches regexp. Binary give me erros "failed with result 'exit-code''". I even copied

[prometheus-users] Prometheus Monitoring

2021-03-31 Thread Bill Zalokostas
Hello, I want to measure the percentage of cpu usage that is used for a specific image including all containers that run this image. Can you provide me the query function in order to solve my problem? Also, can you share a link in which every expression in prometheus query is being

Re: [prometheus-users] mysql_exporter Won't Start

2021-03-31 Thread al carriere
Nice. I went the environment variable route and it popped right up. Thanks! On Wednesday, March 31, 2021 at 9:05:26 AM UTC-5 Steven Kreuzer wrote: > On Tue, Mar 30, 2021 at 10:14 PM al carriere wrote: > >> >> The file /etc/.mysqld_exporter.cnf does in fact exist: >> >> /etc$ ls -lart | grep

Re: [prometheus-users] mysql_exporter Won't Start

2021-03-31 Thread Steven Kreuzer
On Tue, Mar 30, 2021 at 10:14 PM al carriere wrote: > > The file /etc/.mysqld_exporter.cnf does in fact exist: > > /etc$ ls -lart | grep mysqld > -rwxrwxrwx 1 root prometheus54 Mar 30 15:57 .mysqld_exporter.cnf > Is the systemd service unit you are using doing anything to change the

[prometheus-users] maxAgeSeconds and ageBuckets in summary

2021-03-31 Thread 'Dishant Trivedi' via Prometheus Users
I read regarding this here but was unable to fully understand what maxAgeSeconds means. Does it mean that my observations will be fully discarded

Re: [prometheus-users] Send resolved without slack

2021-03-31 Thread Sebastian Glock
I have something like this: global: route: receiver: alert-emailer-cpu-30m group_by: ['alertname', 'priority', 'instance'] group_wait: 10s group_interval: 10s repeat_interval: 30m # resolve_timeout: 10s routes: #rebooted - receiver: alert-emailer-reboot-30m

[prometheus-users] Re: I am using stand alone JMX exporter

2021-03-31 Thread Saipradeep Bojja
HI all, Any solution on the above error am getting the same issue. for example i have installed jmx-exporter in one server and java application on other server and tried to fetch the metrics via adding the hostPort: 5 3.55.129.89:8080 username: sai