[prometheus-users] How to run Prometheus on AWS ECS?

2022-01-02 Thread vickyrat...@gmail.com
I am having an ECS cluster in AWS where I am running 8 services(docker containers). I want to run Prometheus and Grafana inside the cluster but I am not able to understand how to do so? How to persist Prometheus and Grafana data. Could someone please help me to understand this? P.S I don't

Re: [prometheus-users] Re: A query to find a burst?

2022-01-02 Thread Victor Sudakov
Brian Candler wrote: > You can send the query "foo[2d]" and then filter the results in the client, > to just those points where the value is N. Indeed, in the Prometheus Web UI I can use ^F in the browser to look for N. Thank you for the hint. The problem is not to overwhelm the browser with

[prometheus-users] Re: Prometheus Python Client - How to collect only on scrape and control targets?

2022-01-02 Thread ee1
Thank you sir for that guidance. Tested the callback function approach and that seems to be simple and fits the use case well. This seems to work: from prometheus_client import start_http_server, Gauge import random import time g = Gauge('some_test_metric', 'TEST METRIC') def test_gauge():

[prometheus-users] Re: Config Check for AlertManager with Slack and PagerDuty

2022-01-02 Thread Johnny Blaze
Hi Brian, I was able to get it to work based on your provided examples (haven't tried the one liner) Now I just got to read up on how I should go about building more detailed routing rules :) Lastly, I really appreciate you taking the time on getting me over the first initial bump. Take

[prometheus-users] Re: How to run Prometheus on AWS ECS?

2022-01-02 Thread Nuria Ruiz
There is quite a bit of work involved in doing that, this post goes over all steps: https://aws.amazon.com/blogs/mt/monitor-and-scale-your-amazon-ecs-on-aws-fargate-application-using-prometheus-metrics/ On Sunday, January 2, 2022 at 2:19:07 PM UTC-8 vickyrat...@gmail.com wrote: > I am having

Re: [prometheus-users] Re: A query to find a burst?

2022-01-02 Thread David Leadbeater
On Sun, 2 Jan 2022 at 20:43, Brian Candler wrote: [...] > A subquery doesn't cut it here, because it resamples the data. The subquery > "(foo == N)[2d:1s]" gives an approximation, but for a given point you'll see > multiple points at 1 second intervals (until the time where foo != N) If you

[prometheus-users] PRENDE 100 CAZZI IN CULO: #MARIAPAOLATOSCHI DI #JPMORGAN! VUOLE SESSO DI GRUPPO ESTREMO (CON SUOI COMPARI SATANISTI, COMPLOTTARDI, SPIONI, ASSASSINI DI #LIONSCLUBS, #ROTARY E #MASSO

2022-01-02 Thread 'LORENZO PIACENTINI. LAZARD. GRAN LOGGIA SVIZZERA' via Prometheus Users
PRENDE 100 CAZZI IN CULO: #MARIAPAOLATOSCHI DI #JPMORGAN! VUOLE SESSO DI GRUPPO ESTREMO (CON SUOI COMPARI SATANISTI, COMPLOTTARDI, SPIONI, ASSASSINI DI #LIONSCLUBS, #ROTARY E #MASSONERIA DI TIPO MAFIOSO E BERLUSCO卐NAZISTA VARIO): MARIA PAOLA TOSCHI..DI JP MORGAN! É NINFOMANE STRA

[prometheus-users] Re: Prometheus Python Client - How to collect only on scrape and control targets?

2022-01-02 Thread Brian Candler
On Sunday, 2 January 2022 at 03:05:16 UTC ee1 wrote: > 1 - With this client, is it possible, and is anyone aware of a simple > example, of only executing the metric-generating function when a scrape > comes in from prometheus,? > Yes: for a gauge, you can register a callback function. The