[prometheus-users] blackbox metrics scraping

2022-07-21 Thread nina guo
Hi dears,

I'm trying to define an alert rule as below, and the scrape and evaluation 
interval are 3m.


I checked from log, blackbox will send probe every 2-3second, then the 
metrics will be generated every 2-3second, and the data will be compare 
with the alert rules to dertermine an alert will be triggered or not? 

I have a question if Prometheus compares the Live data from blackbox probe, 
or compares the data with Prometheus scrapped in last 3 mins?

prometheus.yml: |-
global:
  scrape_interval: 3m
  evaluation_interval: 3m

- alert: EndpointDown
  expr: probe_success == 0
  for: 5s
  labels:
severity: critical
  annotations:
description: Service {{ $labels.instance }} is unavailable.
value: DOWN ({{ $value }})
summary: "Endpointdown {{ $labels.instance }} is down."

-- 
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/7a46b322-6d64-4076-9986-898681088827n%40googlegroups.com.


Re: [prometheus-users] Delete Metrics From PushGateway

2022-07-21 Thread Bjoern Rabenstein
On 08.07.22 18:14, 'Alan Tam CA' via Prometheus Users wrote:
> 
> I am wondering if there is a way to match all values of the instance label 
> using regex in the URL. So something like
> 
>-   curl -X DELETE 
>http://pushgateway.example.org:9091/metrics/job/some_job/instance/~".+;
>
> Note: Prometheus has this feature to match all values of a label using ~".+". 
> For instance: 
> 
> curl -X POST -g 
> 'http://prometheus.example.org:9090/api/v1/admin/tsdb/delete_series?match[]={__name__=~".+"}'
>  

No, that's not possible.

The Pushgateway isn't really a database (like Prometheus itself), so
it doesn't have any fancy matching.

-- 
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

-- 
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/Ytl%2BYRkwAe7dpbFD%40mail.rabenste.in.


Re: [prometheus-users] Central pushgateway: limits/sizing for pushgateway

2022-07-21 Thread Bjoern Rabenstein
On 16.06.22 02:05, DerekLai Devops wrote:
> 
> Is there any kind of sizing guide for the pushgateway itself?

There is no hard limit. Obviously, your Pushgateway will need more and
more resources the more metric it has to keep in RAM. Also, checking
the metrics for consistency will get harder and harder (every new
metric has to be checked against all the existing ones). Finally,
Prometheus will scrape all pushed metrics in one go, so you don't want
to let the scrape get too large, either.

As a rule of thumb, I would say, you should not go beyond a few
hundred metrics present on the Pushgateway at the same time.

-- 
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

-- 
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/Ytl7s1EYozotHyMA%40mail.rabenste.in.


[prometheus-users] Re: Summary requestLatency | not displaying over prometheus endpoint

2022-07-21 Thread Jay Mishra
here is the correct Guide 
: 
https://acloudguru.com/hands-on-labs/using-the-java-client-library-for-prometheus
 

On Thursday, July 21, 2022 at 3:52:43 PM UTC+5:30 Jay Mishra wrote:

> For me it looks - I am missing any further configuration. 
>
> Moreover, I have added prometheus.yml config file at both locations of 
> SpringCodeRepo and Prometheus server side.
>
> On Thursday, July 21, 2022 at 2:28:58 PM UTC+5:30 Jay Mishra wrote:
>
>> Hi ,
>>
>> I am following https://github.com/prometheus/client_java#summary  - to 
>> find the latency distributons of my @GET request. But after integrations, 
>> the metric "requests_latency_seconds"  is not exposed. 
>>
>> I have included below maven dependency for Prometheus :
>>
>> 
>> 
>> io.micrometer
>> micrometer-registry-prometheus
>> 
>>
>> Any clue or idea ?
>>
>> Thanks,
>> Jay
>>
>>

-- 
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/2d25030b-62af-427c-b6cc-dadd29179fcfn%40googlegroups.com.


Re: [prometheus-users] Prometheus agent mode flag

2022-07-21 Thread ritesh patel
Yea, i fixed it. Using same flag on command.

Now I have one question. How to verify Prometheus working as a agent mode?

How we can verify prometheus work as a agent mode?

Thanks and Regards
Ritesh Patel

On Thu, 21 Jul 2022 at 5:49 PM, Stuart Clark 
wrote:

> On 21/07/2022 11:31, ritesh patel wrote:
>
> Hello Team,
>
> I have prometheus running ad a docker container on docker. I want to use
> prometheus as aagent mode.
> So can someone guide me where I need to put this flag —enable-feature=agent
> .
> On prometheus.yml or something else.
>
> On kubernet i did same things on pass this flag on deployment but on
> docker where?
>
> You need to adjust the command line to add that.
>
> How you do it depends on how you are managing your Docker containers. For
> example using Terraform, Docker Compose, etc. all have different methods
> for setting the command line for a container.
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAPxUNF8qhDCOWxCLLMHnN4Hyx_ExN-fADTEmsA1fhxSLMUpXmA%40mail.gmail.com.


Re: [prometheus-users] Prometheus agent mode flag

2022-07-21 Thread Stuart Clark

On 21/07/2022 11:31, ritesh patel wrote:

Hello Team,

I have prometheus running ad a docker container on docker. I want to 
use prometheus as aagent mode.
So can someone guide me where I need to put this flag 
—enable-feature=agent .

On prometheus.yml or something else.

On kubernet i did same things on pass this flag on deployment but on 
docker where?



You need to adjust the command line to add that.

How you do it depends on how you are managing your Docker containers. 
For example using Terraform, Docker Compose, etc. all have different 
methods for setting the command line for a container.


--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/26de563a-bb0d-b3ad-363d-c4a3b0dfa9db%40Jahingo.com.


[prometheus-users] Prometheus agent mode flag

2022-07-21 Thread ritesh patel
Hello Team,

I have prometheus running ad a docker container on docker. I want to use
prometheus as aagent mode.
So can someone guide me where I need to put this flag —enable-feature=agent
.
On prometheus.yml or something else.

On kubernet i did same things on pass this flag on deployment but on docker
where?


Thanks and regards
Ritesh Patel

-- 
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/CAPxUNF-As_eLECOPPwq%3DXYt6xQueDZYZQ4N-a%3DCzeugn7MWRRw%40mail.gmail.com.


[prometheus-users] Re: Summary requestLatency | not displaying over prometheus endpoint

2022-07-21 Thread Jay Mishra
For me it looks - I am missing any further configuration. 

Moreover, I have added prometheus.yml config file at both locations of 
SpringCodeRepo and Prometheus server side.

On Thursday, July 21, 2022 at 2:28:58 PM UTC+5:30 Jay Mishra wrote:

> Hi ,
>
> I am following https://github.com/prometheus/client_java#summary  - to 
> find the latency distributons of my @GET request. But after integrations, 
> the metric "requests_latency_seconds"  is not exposed. 
>
> I have included below maven dependency for Prometheus :
>
> 
> 
> io.micrometer
> micrometer-registry-prometheus
> 
>
> Any clue or idea ?
>
> Thanks,
> Jay
>
>

-- 
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/5414ba54-9a77-460d-8725-b41ded7d47f5n%40googlegroups.com.


[prometheus-users] Summary requestLatency | not displaying over prometheus endpoint

2022-07-21 Thread Jay Mishra
Hi ,

I am following https://github.com/prometheus/client_java#summary  - to find 
the latency distributons of my @GET request. But after integrations, the 
metric "requests_latency_seconds"  is not exposed. 

I have included below maven dependency for Prometheus :



io.micrometer
micrometer-registry-prometheus


Any clue or idea ?

Thanks,
Jay

-- 
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/2f24d18c-f272-4ff4-bdfe-94f83631b47en%40googlegroups.com.