[prometheus-users] Re: Using PromQL query as a metrics

2020-05-04 Thread Brian Candler
I believe you are looking for "recording rules". https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving em

[prometheus-users] Using PromQL query as a metrics

2020-05-04 Thread Mathieu Tétreault
Hello, Is it possible to use a PromQL query as a metric? I'd like to be able to store the result of my query as a metric. The resulting metric will be exported to other applications and grafana will also display it. We expect the query and mathematical operation to take some time, the idea to

[prometheus-users] Two issues: Prometheus alerts are firing when containers aren't down; can't change scrape_timeout, prometheus won't start.

2020-05-04 Thread James Costello
Hello. I am trying to get to the bottom of two issues, one which may relate to the other. Relatively new to Prometheus and alert rules and the like. We have a prometheus server running version 2.17.2 and cAdvisor running version 0.35 We have an older prometheus server running version 2.8.0 an

[prometheus-users] Helm-Stable-Prometheus Alertmanager Configuration is not getting picked up by Alertmanager

2020-05-04 Thread vikram yerneni
Fellas, I configured the the values.yaml for the helm/stable/prometheus as below: ## Prometheus AlertManager configuration ## alertmanagers: - static_configs: - targets: - alertmanagerIP:9093 But somehow, this configuration is not getting picked up by the Alertmana

Re: [prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Parthey Khanderia
That part actually worked on. My services are now up. The error was while creating snmp.yml Another question I had was regarding grafana. I am using Prometheus as data source but the Vm I am running my docker-compose the port 9090 is already in use . To go around this I am using port 9990 bu

[prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Shay Berman
Thanks Brain - I will check promxy as alternative. But anyway in terms of adaption it looks like Thanos is much wider (means better support if needed in the future). - Federation will not fit because its only on subset of the metric, and its hard to scale it. Shay On Monday, May 4, 2020 at 12

Re: [prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Shay Berman
Hi Bartek, Thanks for the clarifications. 1. Assuming Thanos query component is the same as Prometheus remote_read (probably also in terms of CPU\Memory). I would like to ask how much overhead the Thanos sidecar brings in (in term of CPU\memory and network bandwidth)? 2. You mentioned Thanos

Re: [prometheus-users] SNMP

2020-05-04 Thread Colton Conor
Ben, I agree with you on LIbreNMS being too slow and is too outdated. Do you have any recommendations other than that, or do you feel that all systems are too slow and is too outdated compared to Prometheus? In other words, who do you think are Prometheus's primary competitors? On Mon, May 4, 20

[prometheus-users] Re: Change Prometheus operator namespace

2020-05-04 Thread Radha R4
I figured out this how to do using helm. On Monday, May 4, 2020 at 7:33:53 AM UTC-7, Radha R4 wrote: > > I want to change the Prometheus operator namespace from its default > namespace value. > Which parameter in the values.yaml file should I change? > > https://github.com/helm/charts/tree/maste

Re: [prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Stuart Clark
As you have & in your query, which is a special character for your shell, you will need to enclose the URL in quotes. On 4 May 2020 19:22:58 BST, Parthey Khanderia wrote: >When I do curl I get > > >[1] 156655 >[2] 156656 >[$ 'target' parameter must be specified once > >[1]- Done

Re: [prometheus-users] SNMP

2020-05-04 Thread Ben Kochie
I don't actually recommend LIbreNMS. It's too slow and is too outdated in terms of monitoring capability to be worth implementing. Yes, it's easier to setup for _just_ SNMP monitoring. But it fails at everything else. Scalability, flexibility, performance, etc. Prometheus is a universal platform f

Re: [prometheus-users] SNMP

2020-05-04 Thread Colton Conor
Ben, Thanks for the information. I was really hoping you were going to say check out project x that has this all done for you :(. It sounds like today Promethus would just be too much work for our use case. With that being said, I see some NMS platforms like LibreNMS has a promethus exporter, whi

Re: [prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Parthey Khanderia
When I do curl I get [1] 156655 [2] 156656 [$ 'target' parameter must be specified once [1]- Donecurl http:ip :9116/snmp?community=string [2]+ Donemodule=if_mib -- You received this message because you are subscribed to the Google Groups "Prom

[prometheus-users] Re: Add Prometheus to my own configuration on BESU IBFT2

2020-05-04 Thread yehia tarek
On Monday, May 4, 2020 at 7:58:16 PM UTC+2, yehia tarek wrote: > > Hello everyone, > > I started to create my own ibft2 network, with 2 bootnodes and 6 > validators. following this tutorial > . > > Now, I w

[prometheus-users] Add Prometheus to my own configuration on BESU IBFT2

2020-05-04 Thread yehia tarek
Hello everyone, I started to create my own ibft2 network, with 2 bootnodes and 6 validators. following this tutorial . Now, I want to add Prometheus to my network. So I used a docker-compose.yml file: -

[prometheus-users] Re: Wierd Stale Behaviour of Prometheus.

2020-05-04 Thread Yagyansh S. Kumar
But I did that intentionally to check. Before doing this change my job was: - job_name: 'Ping-All-Servers' metrics_path: /probe params: module: [icmp_prober] file_sd_configs: - files: - /etc/blackbox/*Ping_Targets.yml* Servers.yml relabel_configs: - so

[prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Parthey Khanderia
On Monday, May 4, 2020 at 1:06:24 PM UTC-4, Parthey Khanderia wrote: > > Get http://snmp-exporter:9116/snmp?community=blah > &module=if_mib&target=blah : context deadline exceeded > > I keep getting this erro for context deadline exceeded. Also when i use > the string to add in smp.yml it says

Re: [prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Stuart Clark
On 2020-05-04 18:06, Parthey Khanderia wrote: Get http://snmp-exporter:9116/snmp?community=blah &module=if_mib&target=blah : context deadline exceeded I keep getting this erro for context deadline exceeded. Also when i use the string to add in smp.yml it says error parse .yml file Kinda stuck i

[prometheus-users] Re: SNMP Docker-compose stack

2020-05-04 Thread Parthey Khanderia
Get http://snmp-exporter:9116/snmp?community=blah &module=if_mib&target=blah : context deadline exceeded I keep getting this erro for context deadline exceeded. Also when i use the string to add in smp.yml it says error parse .yml file Kinda stuck in a loop here. Please help -- You received t

[prometheus-users] Re: Black box exporter module http_post_2xx not working.

2020-05-04 Thread Brian Candler
Perhaps you didn't restart blackbox_exporter after editing its config file? Or it's reading a different config file? -- 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

[prometheus-users] Re: Wierd Stale Behaviour of Prometheus.

2020-05-04 Thread Brian Candler
There seems to be some disagreement as to whether the file is called /etc/blackbox/Ping_All_Servers.yml or /etc/blackbox/Ping_Targets.yml -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emai

Re: [prometheus-users] want to eliminate -ve values in my prometheus query

2020-05-04 Thread Julien Pivotto
On 04 May 08:55, Debashish Ghosh wrote: > Hi, > I am plotting a prometheus timeline using the query -( increase(metric > A)[5m] - increase(metric B)[5m]) to derive another timeline metric C . > But due to probably some weird case , sometimes this value is negative . Is > there a way in Prom Q

[prometheus-users] Re: Replace absent values with zeros

2020-05-04 Thread 'Albert Aleksandrov' via Prometheus Users
Thank you for this tip суббота, 2 мая 2020 г., 17:43:58 UTC+3 пользователь Łukasz Mierzwa написал: > > You could also just tell grafana to render null values as zeros. There's a > "Null value" select on the visualisation tab: > > [image: Screen Shot 2020-05-02 at 15.41.45.png] > > > > > > > > > >

[prometheus-users] Re: Replace absent values with zeros

2020-05-04 Thread 'Albert Aleksandrov' via Prometheus Users
Thank you for your answer and cautions суббота, 2 мая 2020 г., 16:19:36 UTC+3 пользователь Brian Candler написал: > > Show individually the results of querying (in the prometheus console, > non-graphical view) > > health_check{job="platform-events-db", cluster="loco-prod"} > > up{job="platform-ev

[prometheus-users] want to eliminate -ve values in my prometheus query

2020-05-04 Thread Debashish Ghosh
Hi, I am plotting a prometheus timeline using the query -( increase(metric A)[5m] - increase(metric B)[5m]) to derive another timeline metric C . But due to probably some weird case , sometimes this value is negative . Is there a way in Prom QL where I can say something like a conditional op

[prometheus-users] Black box exporter module http_post_2xx not working.

2020-05-04 Thread Pooja Chauhan
Hi , I tried to use module http_post_2xx but seems it does not work ,instead http_2xx is being used.I dont how ,in module section i have mentioned http_post_2xx : Prometheus.yml : - job_name: 'Monitorining' metrics_path: /probe params: module: [http_post_2xx] static_configs

[prometheus-users] Change Prometheus operator namespace

2020-05-04 Thread Radha R4
I want to change the Prometheus operator namespace from its default namespace value. Which parameter in the values.yaml file should I change? https://github.com/helm/charts/tree/master/stable/prometheus-operator -- You received this message because you are subscribed to the Google Groups "Pro

Re: [prometheus-users] Getting JMX Exporter up and running

2020-05-04 Thread 'Mr C0ns1st3nt' via Prometheus Users
Brian, I know this is an old post but I too am having difficulty with the JMX exporter. I have attached this to a jar file and when I access the container I can do a local curl and grab the metrics. I just cannot grab them from outside of the container which is obviously an issue as Prometheu

[prometheus-users] Wierd Stale Behaviour of Prometheus.

2020-05-04 Thread Yagyansh S. Kumar
Hi. I am using Blackbox's ICMP module to check for whether my server is Pingable or not. I have defined all the targets in a separate file. Everything was working fine till yesterday, but from then even if I remove any target from my target file, Prometheus does not take the updated file and it

Re: [prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Bartłomiej Płotka
Also this: https://prometheus.io/blog/2019/10/10/remote-read-meets-streaming/ Actually Brian you have a very nice point here. It's not well documented - it's definitely easy to miss this! There is even a recent discussion about it thanks to Shay: https://github.com/prometheus/prometheus/issues/719

Re: [prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Brian Candler
I apologise for spreading misinformation! In my defence, the documentation may be incomplete. I can't find any mention of prometheus providing (rather than consuming) a remote_read endpoint at: https://prometheus.io/docs/prometheus/latest/querying/api/ [this is not the whole API though; e.g. d

[prometheus-users] Collectd Exporter

2020-05-04 Thread Saurabh Jain
Is it possible to direct the metric data from 2 different servers where collectd plugin is enabled to same collectd exporter(so that it can act as a collector as well)??? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from

Re: [prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Bartłomiej Płotka
Hi, Thanks, Brian for tips, I will quickly jump in, as there is a little bit of misinformation here, maybe because things are moving quickly in this area. (: > I believe that Thanos querier component has small footprint (compare to prometheus remote_read). Why? There is literally no overhead vs

[prometheus-users] Re: Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Brian Candler
I don't think (1) will work - that is, I don't think a prometheus server itself can act as a server endpoint for remote_read. (Federation is different). I would add some more lightweight options to your list, which may do the job: 3) Use promxy as a front-end to combine queries across multipl

[prometheus-users] Prometheus remote_read for multiple Prometheus instances or Thanos Querier?

2020-05-04 Thread Shay Berman
I want to consult what is the right approach to break down a "big" prometheus (that scrap too many targets\metrics) into small prometheus instances(each scrap a range of targets) but still get global view via Grafana? Which approach below is better? Approach1) to use prometheus instance that re

Re: [prometheus-users] ec2_sd_configs behind squid proxy is not working

2020-05-04 Thread Brian Brazil
On Mon, 4 May 2020 at 08:53, Kishor Bammidi wrote: > Hi, > > My Prometheus doesn't have direct internet access, it has to go through > the corporate proxy. Here is my job configuration to discover ec2 > instances in another account. > > - job_name: node > proxy_url: http://squid-pr

[prometheus-users] ec2_sd_configs behind squid proxy is not working

2020-05-04 Thread Kishor Bammidi
Hi, My Prometheus doesn't have direct internet access, it has to go through the corporate proxy. Here is my job configuration to discover ec2 instances in another account. - job_name: node proxy_url: http://squid-proxy:3128 ec2_sd_configs: - role_arn: arn:aws:iam: