[prometheus-users] Re: Unable to scrape Postgres cert metrics using Blackbox exporter

2021-06-21 Thread Matt Palmer
On Mon, Jun 21, 2021 at 08:12:50AM -0700, 'Athira Manohar' via Prometheus Users 
wrote:
> I am not able to get postgres certificate expiry details using blackbox 
> exporter as it throws error even after successful connectivity. Please 
> suggest the a way to capture postgress certificate expiry details into 
> prometheus.

This can't be done with the blackbox exporter, because it is inherently
designed for line-based protocols, and Postgres does not use a like-based
protocol.  See https://github.com/prometheus/blackbox_exporter/issues/295
for more details of an equivalent situation.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20210621204907.GC32742%40hezmatt.org.


[prometheus-users] Re: Prometheus keep last value when metric with label disappear

2021-02-08 Thread Matt Palmer
On Sun, Feb 07, 2021 at 09:53:28PM -0800, Andrej Dorinec wrote:
> I encounter an issue with metrics that sometimes disappear. I am using SQL 
> exporter  for extracting data from 
> database and create metrics from them. I am query the queue size and there 
> is description of metric that is used as label. The label change when size 
> of queue is more than 200 (warning) and more than 1000 (critical).

There's your problem.  Stop doing that.  If you absolutely feel you need to
have thresholds in your exporter (which you don't), then make them separate
time series (with 0/1 values), and leave the actual numeric data on a
constantly-existing time series.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20210208223609.qjfedx3asbs24i63%40hezmatt.org.


[prometheus-users] Re: prometheus: x509: certificate signed by unknown authority

2020-11-17 Thread Matt Palmer
On Tue, Nov 17, 2020 at 08:16:11AM -0800, Christophe Dumont wrote:
> I'm trying to monitor Java App with micrometer. The endpoint that exposes 
> the metrics is 
> /actuator/prometheus
> I get an error : 
> prometheus: x509: certificate signed by unknown authority 
> 
> Do you know hox to resolve this ?

I would recommend using a certificate signed by a known authority.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20201117233037.auor3hfhfmbu3jre%40hezmatt.org.


[prometheus-users] Re: Help me scrape data!!!

2020-07-08 Thread Matt Palmer
On Wed, Jul 08, 2020 at 06:53:09PM -0700, Gerson Garcia wrote:
> I have exporter that generates the following data:
> 
> gerson@mypi4:~ $ curl http://192.168.1.148:9393/metrics
> 

[snip]

What made you think that the scrape data format was HTML?  It's not, it's a
straightforward plain-text format.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20200709031756.nf26zkhltm5jzvvw%40hezmatt.org.


[prometheus-users] Re: node_exporter deb packages removed from http://http.us.debian.org ?

2020-06-26 Thread Matt Palmer
On Fri, Jun 26, 2020 at 01:58:32AM -0700, mlov...@gmail.com wrote:
> I'm not sure if the is the correct place to ask,

It almost certainly isn't.  Management of the Debian package repositories is
not under the control of the Prometheus project.

> but I've inherited an 
> ansible playbook that is installing node_exporter by downloading pre-built 
> deb packages from 
> http://http.us.debian.org/debian/pool/main/p/prometheus-node-exporter  
> Specifically we try to install the package: 
> http://http.us.debian.org/debian/pool/main/p/prometheus-node-exporter/prometheus-node-exporter_0.18.1+ds-2_armhf.deb

Your playbook is broken.  *Spectacularly* broken, as in, it is doing things
that are not only wrong, but in a wrong way that is much, much more
difficult than doing things the right way.

Packages only exist in the Debian package pool as long as they are required
for a release of Debian; the package version your runbook is attempting to
download was for the "bullseye" release, and has been superceded by the
1.0.1+ds-1 version in that release.  Thus, the package has been removed from
that URL.

There is a service which takes periodic snapshots of the Debian archive and
mirrors them for posterity, at snapshot.debian.net.  You may be able to use
that to dig yourself out of the immediate hole that you're in, however it is
not a solution to the larger problem.

> It seems that today that package version has been removed. Is this 
> intended? I've tried the latest 1.0.0 package, but that has unmet 
> dependencies (we are running on Raspbian 9.11).

Raspbian is not Debian; you should use the packages from the Raspbian
repositories to ensure that package dependencies are maintained.  If that
distribution does not contain the packages you need, you should get involved
in the development and maintenance of the distribution to ensure that it suits
your needs, or switch to a distribution that does suit your needs.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20200626230931.3km5kx73hcqmnl7j%40hezmatt.org.


[prometheus-users] Re: Saving alerts generated in a database for further procesing like offline querying and ML

2020-04-01 Thread Matt Palmer
On Wed, Apr 01, 2020 at 08:18:02PM -0700, Adarsh Kumar Pandey wrote:
> I wanted to store the alerts generated by prometheus into a separate 
> database and I know that alertsnitch provides this feature but what if I 
> want to use another database then how to do that?
> Does prometheus logs the alerts firing internally and how to access that 
> any idea?

Write a small service that accepts the HTTP requests that Prometheus sends
for alerts and writes them to a database of your choice, configure
Prometheus to send alerts to that service, job done.

- Matt

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/20200402033817.656vqi4pe53we4xh%40hezmatt.org.