[prometheus-users] Re: Any solutions to achieve "avg_over_time(max(http_requests_total)[5m])"?

2020-05-21 Thread zichen chuh
Hi Brian, Thanks for your prompt response. The dimension I was trying to do the "max" was both - the maximum across timeseries, and the maximum over time. So here is what I need: *avg_over_time(max()[5m:1m]) .* 在 2020年5月20日星期三 UTC+8下午7:31:54,Brian Candler写道: > > In which dimension are you tryi

Re: [prometheus-users] help with relabel in kubernetes

2020-05-21 Thread Julius Volz
Hi, It sounds like you want a relabeling rule like: relabel_configs: - action: replace source_labels: [__meta_kubernetes_pod_container_name, __meta_kubernetes_namespace, __meta_kubernetes_pod_container_port_number] target_label: instance regex: (.+);(.+);(\d+) replacement: $1.$2:$3 (The

[prometheus-users] Set variable for multi datasource Prometheus in Grafana

2020-05-21 Thread Miền Nguyễn
Hi everyone, I want to draw metrics of many Prometheus clusters in a Grafana dashboard. But I can't set variable for all datasource Prometheus to filter on the top dashboard. I'm using Grafana version 7.0. How way merge multi datasource Prometheus to one datasource and query metrics all datasou

[prometheus-users] Re: Set variable for multi datasource Prometheus in Grafana

2020-05-21 Thread Brian Candler
Works for me in Grafana 6.6.2. Dashboard Settings > Variables: [image: img1.png] Panel Query: [image: img2.png] The "source" dropdown appears in the top row of the dashboard. I suggest you ask on the Grafana mailing list if you are having problems with Grafana. -- You received this messag

Re: [prometheus-users] Re: Set variable for multi datasource Prometheus in Grafana

2020-05-21 Thread Miền Nguyễn
Hi Brian Candler, Thank you. Before, I did as you but I only query metric when I choose "Query" cell is "$source" match with source variable on the top dashboard. I want to merge multi datasource Prometheus together on Grafana. Can this be done? Example: When I choose "Query" cell is "$source", I

[prometheus-users] Hi i am using process exporter to monitor process related to microservices but the name of the process of microservice i am not able to extract .

2020-05-21 Thread Pooja Chauhan
Hi , My requirement is to use process-exporter in the microservice node to monitor specific process related to the particular service and then create a dashboard in grafana for all the microservices to display that service alone process related informations like cpu ,memory,threadcount etc. So i

[prometheus-users] Re: Hi i am using process exporter to monitor process related to microservices but the name of the process of microservice i am not able to extract .

2020-05-21 Thread Pooja Chauhan
Also i need to know how to get full name of the process it shows till 15 char in the metrics. On Thursday, May 21, 2020 at 7:16:25 PM UTC+5:30, Pooja Chauhan wrote: > > Hi , > My requirement is to use process-exporter in the microservice node to > monitor specific process related to the partic

Re: [prometheus-users] Re: Set variable for multi datasource Prometheus in Grafana

2020-05-21 Thread Brian Candler
This is a really a question about grafana rather than prometheus - as far as I know, grafana can't do that. I believe you can install promxy , and point grafana at promxy, and promxy will combine results from multiple prometheus backends. I haven't deployed

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

2020-05-21 Thread Aliaksandr Valialkin
Hi Yogesh, On Sun, May 10, 2020 at 3:51 PM Yogesh Jadhav wrote: > Thanks for the reply, Brian. > > I don't mind writing recording rules. My only worry is will I be able to > use Grafana dashboards without any issues (especially when we access data > over years) as InfluxDB stores it internally i

Re: [prometheus-users] Re: Set variable for multi datasource Prometheus in Grafana

2020-05-21 Thread Julien Pivotto
On 21 May 18:18, Miền Nguyễn wrote: > Hi Brian Candler, > > Thank you. Before, I did as you but I only query metric when I choose > "Query" cell is "$source" match with source variable on the top dashboard. > I want to merge multi datasource Prometheus together on Grafana. Can this > be done? > >

[prometheus-users] Don't see Store on Thanos querier interface

2020-05-21 Thread Zhang Zhao
I was using stable/prometheus-operator helm chart to deploy prometheus along with Thanos sidecar to AKS. I am working on deploying other Thanos components Querier and Store. Querier and Store pods are up and running on AKS. However, I do not see Store from Querier interface. Any advice? thanos

[prometheus-users] Adding extra labels to metrics

2020-05-21 Thread Juan Rosero
Hello, I'm trying to add location labels to my Apache Exporter metrics and other exporters that don't expose them when Prometheus scrapes them from the server nodes. Here is my Prometheus job and the labels (ad, dom, reg) that I'm looking to add depending on the server location. Please let me k

Re: [prometheus-users] Adding extra labels to metrics

2020-05-21 Thread Julien Pivotto
Hi, On 21 May 14:00, Juan Rosero wrote: > Hello, > > I'm trying to add location labels to my Apache Exporter metrics and other > exporters that don't expose them when Prometheus scrapes them from the > server nodes. Here is my Prometheus job and the labels (ad, dom, reg) that > I'm looking to

[prometheus-users] Email Alert Notification: FROM address does not work

2020-05-21 Thread Steve
Hi Email alert notification is working well with one exception: the FROM address. I am currently sending the email TO my gmail address. I have configured the FROM email address (different from the TO address) but it does not work. In the email notification I received, the FROM email address is al

[prometheus-users] or function in alert annotation

2020-05-21 Thread Frank R
Alert templating question. I have an issue where some targets have a hostname label. When there is no hostname label the instance label should be used. Would this work in a prometheus alert annotation: {{ or $labels.hostname $labels.instance }} ? -- You received this message because you are

Re: [prometheus-users] Email Alert Notification: FROM address does not work

2020-05-21 Thread Julien Pivotto
On 21 May 14:31, Steve wrote: > Hi > Email alert notification is working well with one exception: the FROM > address. > I am currently sending the email TO my gmail address. > I have configured the FROM email address (different from the TO address) > but it does not work. > In the email notificat

Re: [prometheus-users] or function in alert annotation

2020-05-21 Thread Julien Pivotto
On 21 May 14:33, Frank R wrote: > Alert templating question. > > I have an issue where some targets have a hostname label. When there is no > hostname label the instance label should be used. > > Would this work in a prometheus alert annotation: > > {{ or $labels.hostname $labels.instance }}

Re: [prometheus-users] or function in alert annotation

2020-05-21 Thread Frank R
Thanks, Will this work if the target already had an instance and hostname label? On Thu, May 21, 2020 at 5:37 PM Julien Pivotto wrote: > > On 21 May 14:33, Frank R wrote: > > Alert templating question. > > > > I have an issue where some targets have a hostname label. When there is no > > hostnam

Re: [prometheus-users] or function in alert annotation

2020-05-21 Thread Julien Pivotto
On 21 May 18:08, Frank R wrote: > Thanks, > > Will this work if the target already had an instance and hostname label? > If there is already a hostname label, the original value is kept. If there is no hostname label, the value of instance is set as hostname label. > On Thu, May 21, 2020 at 5:

Re: [prometheus-users] Email Alert Notification: FROM address does not work

2020-05-21 Thread Steve
Hi Julien Here goes: receivers: - name: email email_configs: - to: my-em...@gmail.com from: alertmana...@org.com smarthost: smtp.gmail.com:587 auth_username: my-em...@gmail.com auth_identity: my-em...@gmail.com auth_password: abcdefghijkl

[prometheus-users] Prometheus-operator helm chart configuration to expose Thanos sidecar to Thanos querier

2020-05-21 Thread Zhang Zhao
I used stable/prometheus-operator helm chart to deploy prometheus and enabled thanos sidecar to send metric to Azure storage. On Thanos query I was able to see the store reporting, however I was not able to see sidecar reporting to query. Also I was not able to execute any query as it returns n

[prometheus-users] error orccured during parsing service discovery file.

2020-05-21 Thread ㅁㄴ
- prometheus.yml global: scrape_interval: 3s evaluation_interval: 3s rule_files: # - "first.rules" # - "second.rules" scrape_configs: - job_name: prometheus static_configs: - targets: ['localhost:9090'] - job_name: node_exporter file_sd_configs: - files:

[prometheus-users] JMX Exporter can't display Oracle Weblogic Gridlink Data Source Metric

2020-05-21 Thread Julian Ade Putra
Hi Expert, I found that JMX Exporter can't display JDBC Gridlink data source type on weblogic. As i checked its only can display for JDBC Generic type on weblogic. Did someone has same issue with me? Regards, Julian -- You received this message because you are subscribed to the Google Groups

[prometheus-users] Adding same metric with different label values

2020-05-21 Thread Ankit Kumar
Hi Guys, I was trying to add the same metric with different label values using the following querry: metric_total{label1="label1", label2="label2"} + ignoring(label2) metric_total(label2="label3") However, I get "No Data". Not sure what is the issue, can someone help? -- You received this me

Re: [prometheus-users] Adding same metric with different label values

2020-05-21 Thread Julien Pivotto
With such a low level of details I am afraid it will be difficult to help. Can you provide a sample of actual metrics? You can also try https://promlens.com/ which could help you understand what is going on. Le ven. 22 mai 2020 à 07:31, Ankit Kumar a écrit : > Hi Guys, > > I was trying to add

Re: [prometheus-users] Email Alert Notification: FROM address does not work

2020-05-21 Thread Brian Candler
The issue is that Gmail is forcing your From: address to be the same as your authenticated identity (to avoid spoofing). You can add extra verified E-mail addresses to your Gmail account, and then you will be able to send using those as well. It's in Gmail settings somewhere. Beware that if t

[prometheus-users] Re: error orccured during parsing service discovery file.

2020-05-21 Thread Brian Candler
Firstly, the top level of the targets file must be a list, which means "bullet points" required at the top: - targets: ... labels: ... - targets: ... labels: ... Secondly, the labels themselves can only be strings, not lists. - targets: - "localhost:9100/metrics" labels: - ensem