[prometheus-users] Prometheus with Eureka Discovery
Hi All , I am setting up Prometheus in Kubernetes . And I want to load service discovery config from external source over URL . The json file is accessible over URL . I have checked the Prometheus document and it seems this can be achieved using eureka . I have no experience with eureka , how to setup so that I can use in Prometheus . I checked in Google , no much information available . Please suggest some document or other alternative solution I can achieve by accessing json from URL . Thanks -- 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/a53d717a-4584-4b46-93c7-5c9553814262o%40googlegroups.com.
Re: [prometheus-users] Getting Security Policy : frame-ancestors error , please suggest
Hi Stuart , Thank you for help on this . One thing I forgot to mention . We have Thanos also in front of Prometheus , will it impact if enable SSL ? Thanks > On 6 Aug 2020, at 1:36 AM, Stuart Clark wrote: > > On 05/08/2020 17:54, sunils...@gmail.com wrote: >> Hi All, >> >> In our current setup Prometheus is non-ssl configured , which means I am >> accessing Prometheus as http://server-name:9090 >> >> During our recent Security scan below details were reported . Please advise >> , what step I can take for this . >> >> Message : >> X-Frame-Options or Content-Security-Policy: frame-ancestors HTTP Headers >> missing on port 9090. >> > You can run a reverse proxy (e.g. nginx) in front of Prometheus to add TLS, > authentication or any HTTP headers you wish... > > -- 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/766EB61C-765B-452B-9DE7-E5C528FA2F36%40gmail.com.
[prometheus-users] alertmanager mail notification with value in mail
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 80% or 90% etc . But I see only hyperlink "Source" of Prometheus . For ex. I receive mail : Server : server1 Value: 90 Source Server : server2 Value: 91 Source -- 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/05a78286-3266-4162-9abb-52788082838f%40googlegroups.com.
[prometheus-users] Re: alertmanager mail notification value
Hi To Add more , I want expected alert something like : Server : server1 Value : 90 Source Server : server2 Value : 91 Source .. etc Thanks On Friday, May 1, 2020 at 3:15:44 PM UTC+8, sunil sagar wrote: > > 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 80% or 90% etc . > But I see only hyperlink "Source" of Prometheus . > > For ex. I receive mail : > > > Server : server1 > Source > > > Server : server2 > Source > > Thanks, > > -- 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/6c4e6cbb-774f-487b-85af-efd84bfa30b9%40googlegroups.com.
[prometheus-users] alertmanager mail notification value
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 80% or 90% etc . But I see only hyperlink "Source" of Prometheus . For ex. I receive mail : Server : server1 Source Server : server2 Source Thanks, -- 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/6fb83b8d-ee1c-4306-8aac-ded539c05cae%40googlegroups.com.
[prometheus-users] suggest document for alert manager
Hi, I am working on alert-manager , very new to this . I want to write query for if data is not received on certain topic/feed within one hour , it should send mail to a particular group , such kind of alerting mechanism I have to implement . Please suggest any documentation I can follow . Thanks, -- 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/cb1cb30e-dbe1-475b-8c37-e359d02e1f10%40googlegroups.com.
Re: [prometheus-users] AlertManager firing duplicate alerts
Hi All , Corrected on error : Node 2 is marked as replica2 > > Prometheus Config: > > Prometheus Node1: > global: >external_labels: > replica: 1 > > alerting: > alertmanagers: > -static_configs: > - targets: > - alertmanager1:9093 > - alertmanager2:9093 > > -- > Prometheus Node2: > global: >external_labels: > replica: 2 > > alerting: > alertmanagers: > -static_configs: > - targets: > - alertmanager1:9093 > - alertmanager2:9093 > ----- Thanks > On 25 Mar 2020, at 12:18 PM, sunil sagar wrote: > > > Hi , > > I have Prometheus environment in HA mode . And AlertManager is also in HA > mode . > I am receiving duplicate alerts . > When I start both the prometheus , because of global label with different > replica name , getting duplicate alert . Please advise. > > Prometheus Config: > > Prometheus Node1: > global: >external_labels: > replica: 1 > > alerting: > alertmanagers: > -static_configs: > - targets: > - alertmanager1:9093 > - alertmanager2:9093 > > -- > Prometheus Node2: > global: >external_labels: > replica: 1 > > alerting: > alertmanagers: > -static_configs: > - targets: > - alertmanager1:9093 > - alertmanager2:9093 > - > Sample AlertManager rule: > expr: max(up == 0 ) by (host) > -- > 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/c1b788da-59c0-439c-8fc2-d1ded5f0bf46%40googlegroups.com. -- 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/512BCF6B-BDA3-436A-BD9C-D2C0F3522F92%40gmail.com.
[prometheus-users] AlertManager firing duplicate alerts
Hi , I have Prometheus environment in HA mode . And AlertManager is also in HA mode . I am receiving duplicate alerts . When I start both the prometheus , because of global label with different replica name , getting duplicate alert . Please advise. Prometheus Config: Prometheus Node1: global: external_labels: replica: 1 alerting: alertmanagers: -static_configs: - targets: - alertmanager1:9093 - alertmanager2:9093 -- Prometheus Node2: global: external_labels: replica: 1 alerting: alertmanagers: -static_configs: - targets: - alertmanager1:9093 - alertmanager2:9093 - Sample AlertManager rule: expr: max(up == 0 ) by (host) -- 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/c1b788da-59c0-439c-8fc2-d1ded5f0bf46%40googlegroups.com.
[prometheus-users] output of promql query as input to other query
Hi , With topic name I am able to find the servers associated with that topic . Now I want to query cpu and memory for those server . I have cpu and metrics for those servers . But how to form query . Details : There are 10 servers say server1 .. server10 . Topic is assocated with only server1 .. server5 . I get that detail as : sum(messagein(topic="topicname"}) by (host) Now I want to get cpudetails for those identified hosts (server1 .. server5). I tried below query for the scrpas coming from telegraf as : cpuidle(sum(messagein(topic="topicname"}) by (host)) this is not working can i try something else ? Thanks -- 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/24b0aee3-db64-4516-9073-5fd43e231a6b%40googlegroups.com.