Re: [prometheus-users] Thanos deployment.

2020-05-07 Thread piyush sharma
Hi Saurabh Helm chart is available for Thanos deployment You can use that On Fri, 8 May, 2020, 9:58 am Saurabh Jain, wrote: > Hi Julius, > > Thanks for the response. > > Thanos setup contains only one file when downloaded from github. How > individual components will be deployed. > > Is it to

Re: [prometheus-users] Thanos deployment.

2020-05-07 Thread Saurabh Jain
Hi Julius, Thanks for the response. Thanos setup contains only one file when downloaded from github. How individual components will be deployed. Is it to use same file along with different .yaml file to deploy different components Pls advice. Thanks, Saurabh On Friday, May 8, 2020 at

[prometheus-users] cluster.peer update in alertmanager -Prometheus operator

2020-05-07 Thread Radha R4
I am getting below error , State: Waiting Reason:CrashLoopBackOff Last State: Terminated Reason:Error Message: level=info ts=2020-05-08T00:12:12.177Z caller=main.go:231 msg="Starting Alertmanager" version="(version=0.20.0, branch=HEAD,

Re: [prometheus-users] Thanos deployment.

2020-05-07 Thread Julius Volz
Hi, What do you mean with "or we have to use images only"? You can deploy Thanos components individually, yes. For example, you could start out by just deploying the sidecar component that backs up Prometheus data at first. Later, you could add the querier component that gives you an integrated

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
On Thursday, 7 May 2020 17:54:47 UTC+1, piyush sharma wrote: > > Hey > > I have a query like this > > if sum by (locale) ( expression1)/sum by (locale) ( expression2) >=0 > > This gives me no data points and hence a broken graph > > Looks like a reasonable expression (without the "if" on the

[prometheus-users] Re: Zendesk to prometheus integration

2020-05-07 Thread Hatos Barbosa
Any news about this problem? Still looking for a way to integrate ZenDesk and Alertmanager, so it can create tickets when firing an alert. On Wednesday, August 1, 2018 at 11:41:18 AM UTC-3, david...@digital.cabinet-office.gov.uk wrote: > > Hello, > > Does any body here ever had to integrate

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread piyush sharma
Hey I have a query like this if sum by (locale) ( expression1)/sum by (locale) ( expression2) >=0 This gives me no data points and hence a broken graph sum_over_time did not work in this case as it does not take the "by" option Any way I can re write this ... can I make it avg of sum by

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
The first matching route wins. If you want a matched route to continue onto subsequent matches, add "continue: true". You would need to set this on both of your first two routes, if you want those alerts to go to alertnow as well as to slack. The documentation you need is here:

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread piyush sharma
Hello , I am having an issue but nothing related to this comes up in logs Below is my alertmanager config alertmanager.yml: global: resolve_timeout: 12h receivers: - name: slack-production slack_configs: - api_url:

Re: [prometheus-users] How to use zookeeper for service discovery

2020-05-07 Thread Julien Pivotto
On 07 May 02:24, Jeff Zhang wrote: > Hi all, > > I found zookeeper service discovery related doc in prometheus code base, > but didn't find any document of how to use it. Could anyone guide me how to > use that ? Thanks > >

[prometheus-users] Re: InfluxQL queries for Data collected by Prometheus

2020-05-07 Thread Brian Candler
If you are using prometheus' remote_write feature to write to influxdb, then I would have thought you would be able to query it via prometheus' remote_read via the same PromQL interface - that is, you should not have to write influxQLqueries (I'm not sure why you've found this). But you may

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
I don't know an easy way. I guess you can do it using custom templates, since they are passed the list of firing and resolved alerts: https://prometheus.io/docs/alerting/notifications/ -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To

Re: [prometheus-users] Re: How to use zookeeper for service discovery

2020-05-07 Thread Brian Candler
You'd have to add to zookeeper whatever Nerve and/or Synapse adds to zookeeper. If this isn't documented, then you may need to look at source code. > > -- You received this message because you are subscribed to the Google

Re: [prometheus-users] Re: How to use zookeeper for service discovery

2020-05-07 Thread Jeff Zhang
Thanks Brian, this is the configuration on prometheus side, what I look for is what kind of data format I should insert into zookeeper. Is there any example ? Brian Candler 于2020年5月7日周四 下午8:10写道: > Looks like it's this one: > >

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread piyush sharma
So is there any way out so that while alerting I get the value and when I get the resolved message ,,, i get only the message and not the value ? On Thu, May 7, 2020 at 6:18 PM Brian Candler wrote: > P.S. If you change your annotation from "Current value is X" to "Most > recent triggering value

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
P.S. If you change your annotation from "Current value is X" to "Most recent triggering value is X", then the resolved message may make more sense. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
On Thursday, 7 May 2020 13:37:43 UTC+1, piyush sharma wrote: > > > Actually when there is an alerting situation , I get an alert on slack > with the alerting value . > But after sometime when alert is resolved , I still get the old value > which is below the threshold ( ideally should be in

[prometheus-users] InfluxQL queries for Data collected by Prometheus

2020-05-07 Thread Yogesh Jadhav
Hi All, I am using Prometheus with SNMP exporter to fetch metrics from network devices like router, switch, etc. After creating dashboards in Grafana, I realized that Prometheus does not provide downsampling for long term storage over years such that footprint is fixed and small. So InfluxDB

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread piyush sharma
Thanks for such a comprehensive answer to the query :) I have one more doubt Actually when there is an alerting situation , I get an alert on slack with the alerting value . But after sometime when alert is resolved , I still get the old value which is below the threshold ( ideally should be in

[prometheus-users] Re: How to use zookeeper for service discovery

2020-05-07 Thread Brian Candler
Looks like it's this one: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#nerve_sd_config If you look in the source code that you found: https://github.com/prometheus/prometheus/blob/master/discovery/zookeeper/zookeeper.go you'll see NerveSDConfig -- You received this

[prometheus-users] Thanos deployment.

2020-05-07 Thread Saurabh Jain
Hi Guys, Need your support in implementing Thanos in our environment. Is it possible to deploy thanos components individually or we have to use images only. Pls share any document, if available. Thanks, Saurabh -- You received this message because you are subscribed to the Google Groups

[prometheus-users] Re: Monitor Java spring boot app without instrumenting the code

2020-05-07 Thread Ketan Talreja
Also, after using @Times annotation at the method level, I am getting metrics consist of of *http_server_requests_seconds_count{exception="None",method="GET",status="200",uri="/students",} 2.0* While I was hoping this will return tags from Http request and response as per the default

Re: [prometheus-users] Kafka exporter vs JMX exporter

2020-05-07 Thread Ankit Rohilla
Please follow this thread. I've given a few links. Regards On Friday, 11 January 2019 16:32:36 UTC+5:30, kunaa...@gmail.com wrote: > > Hi Ankit, > > Can you help me with,setting up monitoring for kafka. > I was using JMX exporter ,but I couldn't see proper logs in promethes. > Can you tell me

[prometheus-users] Re: Kafka exporter vs JMX exporter

2020-05-07 Thread Ankit Rohilla
Hi, I don't clearly remember how I did it back then. But I found a few links that I referred to run all these things. Here are the links: https://alex.dzyoba.com/blog/jmx-exporter/

[prometheus-users] Re: Kafka exporter vs JMX exporter

2020-05-07 Thread Himanshu Ganatra
You can use the binary, it's on their official github. On Wednesday, 4 March 2020 11:09:46 UTC+5:30, Shah Darpan wrote: > > Hi, > > How to configure Kafka exporter for kafka monitoring WITHOUT using DOCKER. > > Thanks, > Darpan Shah > > On Monday, September 10, 2018 at 4:51:57 PM UTC+5:30,

[prometheus-users] How to use zookeeper for service discovery

2020-05-07 Thread Jeff Zhang
Hi all, I found zookeeper service discovery related doc in prometheus code base, but didn't find any document of how to use it. Could anyone guide me how to use that ? Thanks https://github.com/prometheus/prometheus/tree/master/discovery/zookeeper -- You received this message because you are

[prometheus-users] Re: no main manifest attribute, in jmx_prometheus_javaagent-0.12.0.jar

2020-05-07 Thread sathish kumar
java -javaagent:./jmx_prometheus_javaagent-0.12.0.jar=8080:config.yaml -jar yourJar.jar Looks like your last argument need to point to the JAVA application you are trying to Monitor. Thanks. On Friday, April 24, 2020 at 6:26:42 PM UTC+5:30, Jayesh Patel wrote: > > Hello guys, > > I want to

[prometheus-users] alertmanager mail notification with value in mail

2020-05-07 Thread sunil sagar
Hi I have setup alert-manager , which sends alert notification by mail. This gives all key values which was used to form query , but doesn't display the value in mail . Is it possible to show the value also . For example for CPU alert , below alerts were generated by current utilization is

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
P.S. if you want to get "an average over 5 minutes" you need to use a range vector, which is a collection of metrics with all their values over a range of time: then you can do avg_over_time( ... range vector ...) You can get a range vector directly from an individual metric: foo[5m] Or you

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread Brian Candler
Firstly, comparison operators don't work the way you imagine. They are more like filters. The expression "foo" is a vector of zero or more timeseries all with the metric name "foo". So for

Re: [prometheus-users] Re: Alert manager looping in firing -> resolved -> firing

2020-05-07 Thread piyush sharma
Hey Guys , I have a doubt on how the result of an alert condition is evaluated. Below is my configuration for prometheus *evaluation_interval: 1m* * scrape_interval: 1m* Now my query is as below avg(metric_first_asr{locale=~"en-gb"}) by (locale) >= 80 AND

[prometheus-users] Monitor Java spring boot app without instrumenting the code

2020-05-07 Thread Ketan Talreja
Hi Guys, Hope everyone is doing well! I have started using Prometheus to collect metrics for my application which is implemented in Java spring boot 2.x framework. I have used "micrometer-registry-prometheus" library but this required some annotation to be done in the code and moreover

[prometheus-users] Re: Prometheus HTTPs setup questions

2020-05-07 Thread Brian Candler
On Thursday, 7 May 2020 01:27:14 UTC+1, H T wrote: > > In my case, remote server is using a self-signed certificate and based on > your comments I tried the below approach which worked and other which > didn't. > > *Working Scenario -> (Both remote server and Prometheus using same CA > certs