Re: [prometheus-users] Promethous not gathering metrics until added to a existing docker bridge network.

2020-04-30 Thread Christian Hoffmann
On 4/30/20 4:21 AM, H T wrote: > Is it mandatory to add Prometheus docker container to an existing bridge > network for extracting metrics ? > I Have an existing docker bridge network with few containers and i am > trying to extract metrics from them. But prometheus only works when i > add it to th

Re: [prometheus-users] Best way to calculate the increase in the counter value over a time period?

2020-04-30 Thread Brian Brazil
On Fri, 1 May 2020 at 07:46, Christian Hoffmann < m...@hoffmann-christian.info> wrote: > Hi, > > On 5/1/20 3:57 AM, O wrote: > > I am using increase() function to calculate the increase in counter > > value over a time period. These values are being displayed in a table in > > Grafana. But, for a

Re: [prometheus-users] Best way to calculate the increase in the counter value over a time period?

2020-04-30 Thread Christian Hoffmann
Hi, On 5/1/20 3:57 AM, O wrote: > I am using increase() function to calculate the increase in counter > value over a time period. These values are being displayed in a table in > Grafana. But, for a duration of 15 days or so, it errors out because the > number of samples that are being pulled is t

[prometheus-users] Re: context deadline exceeded

2020-04-30 Thread Brian Candler
If snmpwalk isn't responding then you need to fix that. 1. Is your device reachable over the network? (Can you ping it?) 2. Does your device have its SNMP agent enabled? 3. If your device has an SNMP ACL, does it allow access from the address you are querying from? 4. Are you using the same versi

[prometheus-users] Re: Best way to calculate the increase in the counter value over a time period?

2020-04-30 Thread Brian Candler
Can you show your actual query? Also what version of Prometheus are you using? -- 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...

[prometheus-users] context deadline exceeded

2020-04-30 Thread Grati Mohamed ali
i 'am trying to monitor my devices (array disk) using snmpwalk but i always got context deadline exceeded Some help to troubleshoot snmp !(i tried snmpwalk) but i got no response from host -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To

[prometheus-users] Best way to calculate the increase in the counter value over a time period?

2020-04-30 Thread O
Hi everyone, I am using increase() function to calculate the increase in counter value over a time period. These values are being displayed in a table in Grafana. But, for a duration of 15 days or so, it errors out because the number of samples that are being pulled is too high and the limit for

[prometheus-users] How to query to know if a metric has been available for an hour

2020-04-30 Thread Arnav Bose
Hi, I know I can check in the graph how long the metric has been available. In my case I want to create a query which will list down the data for a metric which has been available for an hour, excluding the ones which at least went down/missing during the same period. Here is my metric - CMSu

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

2020-04-30 Thread Brian Candler
That's the maximum. Prometheus web interface (9090) shows them firing? What about alertmanager web interface (9093)? Otherwise check your routing rules. Maybe run tcpdump to see if it's trying to connect to slack. -- You received this message because you are subscribed to the Google Groups "

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

2020-04-30 Thread piyush sharma
Hello. I am not receiving any alerts in slack channel Nor I am getting any thing related to slack in the alert manager logs. Though alerts are firing. What leave of error logging is required for this. My current log level is debug. Regards Piyush On Thu, 30 Apr, 2020, 12:53 pm Brian Candler, w

[prometheus-users] Re: HTTP response duration with Prometheus

2020-04-30 Thread 'Albert Aleksandrov' via Prometheus Users
rancher/nginx-ingress-controller четверг, 30 апреля 2020 г., 19:58:44 UTC+3 пользователь Brian Candler написал: > > Which ingress controller are you using? > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group an

[prometheus-users] Inhibit rules query

2020-04-30 Thread Radha R4
I have alertmanager rules defined as below My query is if memoryHigh alert comes up,will they be routed to receiver ChannelA as per the route match rule or will they be inhibited as per inhibit rule? Does the inhibit rule takes precendence here? routes: - match_re: namespace: monitoring recei

[prometheus-users] Re: HTTP response duration with Prometheus

2020-04-30 Thread Brian Candler
Which ingress controller are you using? -- 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 discussio

[prometheus-users] Re: Monitor only specific namespace metrics - Prometheus-operator within Kubernetes

2020-04-30 Thread Brian Candler
It looks like you're already limiting to specific namespaces? Is that not working? # Optional namespace discovery. If omitted, all namespaces are used. namespaces: names: [ - ] Otherwise: you're alread

[prometheus-users] export and capture rest endpoint output for metrics calculation

2020-04-30 Thread Ketan Talreja
Hi All, I have a use-case where I need to collect rest endpoint output metric i.e. let's say the output/response of rest endpoint is some value which I need to export to prometheus for calculating how many times the endpoint returned the 'x' value For example - GET //users - return list of

[prometheus-users] Prometheus EC2 SD with Multiple AWS Accounts

2020-04-30 Thread Shivali Chauhan
Hi Team, I am trying to monitor multiple aws account using access key on same master node. Is that possible? Regards, Shivali -- 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,

Re: [prometheus-users] Unable to access localhost from pushgateway pod on openshift

2020-04-30 Thread Nidhi Sharma
Below is the ideal script when pod is working fine. If I try to include any flag here, i get crashloop pod #!/bin/sh /bin/pushgateway --log.level=$LOGLEVEL On Thursday, April 30, 2020 at 5:26:00 PM UTC+5:30, Nidhi Sharma wrote: > > I commited below script now but still pod is in crashloop > > #!

[prometheus-users] Re: HTTP response duration with Prometheus

2020-04-30 Thread 'Albert Aleksandrov' via Prometheus Users
Brian, thank you for your answer. I misunderstood current environ. We have cluster ingress and no NGINX before the frontend react app. Is seems that we should realize metrics gathering inside app. среда, 29 апреля 2020 г., 11:32:40 UTC+3 пользователь Brian Candler написал: > > If you're instrum

Re: [prometheus-users] Unable to access localhost from pushgateway pod on openshift

2020-04-30 Thread Nidhi Sharma
I commited below script now but still pod is in crashloop #!/bin/sh exec /bin/pushgateway --web.enable-lifecycle --web.enable-admin-api On Thursday, April 30, 2020 at 3:04:05 PM UTC+5:30, Brian Candler wrote: > > On Thursday, 30 April 2020 09:23:24 UTC+1, Nidhi Sharma wrote: >> >> *Entrypoint.sh*

[prometheus-users] Re: The value for first time operation is minus 1

2020-04-30 Thread David5228 WANG
Hi Brian Do you think the design for the first value with 1 is reasonable ? thanks 在 2020年4月30日星期四 UTC+8下午3:55:55,Brian Candler写道: > > I don't see the problem here. I see no time in your range output where > the value is not 1, and the difference between and 1 is not 1. > >> > Looking at

[prometheus-users] Re: Burp scan reports SQL injection attack on the prometheus server

2020-04-30 Thread Brian Candler
I suggest you report this to the burp people as a false positive. Prometheus has handled this exactly right - it has rejected the request, and given a descriptive response saying what's wrong with the format of the provided data. There's no SQL in prometheus anyway. -- You received this messa

[prometheus-users] SEVERE: JMX scrape failed: java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx

2020-04-30 Thread Rahul Kumar
Hi, I am using Wildfly-17.0.1.Final, and I'm getting the following error SEVERE: JMX scrape failed: java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx at java.management/javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:366) at java.manag

[prometheus-users] Re: The value for first time operation is minus 1

2020-04-30 Thread David5228 WANG
Hi Brian *I think I can understand the output for com_nokia_neo_metrics_subscriber_counter_perip_total[5m]. * *when I do one time action="dlt", the first value is the inital value for 5min and the value is 1 not 0. The end value is also 1. so the delta is 0. * *In my mind, I think the first

[prometheus-users] SEVERE: JMX scrape failed: java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx

2020-04-30 Thread Rahul Kumar
Hi, I'm getting the following error SEVERE: JMX scrape failed: java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx at java.management/javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:366) at java.management/javax.management.remote.JMXConn

[prometheus-users] Burp scan reports SQL injection attack on the prometheus server

2020-04-30 Thread Pavan Reddy
*What happened*: using burp scanner to scan the Prometheus server, it reports a *SQL injection attack* with high severity.I am using Prometheus 2.16 version. Please find the Request and Response details below. Request GET /api/v1/query?query=time()'&_=1588065331449 HTTP/1.1 Host: x.x.x.x:9090

[prometheus-users] Re: avg_over_time OVER min

2020-04-30 Thread 'Albert Aleksandrov' via Prometheus Users
Thanx for your support, Brian! четверг, 30 апреля 2020 г., 12:36:16 UTC+3 пользователь Brian Candler написал: > > You need a subquery > > if you want to convert a subexpression into a range vector for > avg_over_time. e.g

[prometheus-users] Re: The value for first time operation is minus 1

2020-04-30 Thread David5228 WANG
Thanks for your support. The result for com_nokia_neo_metrics_subscriber_counter_perfsdb_total for (action="dlt") and com_nokia_neo_metrics_subscriber_counter_perfsdb_total [5m] is right. The value are all 1. Initially there is no this element(action="dlt"). When I do one time action="dlt

[prometheus-users] Re: avg_over_time OVER min

2020-04-30 Thread Brian Candler
You need a subquery if you want to convert a subexpression into a range vector for avg_over_time. e.g. avg_over_time( (min(health_check))[7d:5m] ) This example will evaluate the inner expression at 5m intervals over 7

Re: [prometheus-users] Unable to access localhost from pushgateway pod on openshift

2020-04-30 Thread Brian Candler
On Thursday, 30 April 2020 09:23:24 UTC+1, Nidhi Sharma wrote: > > *Entrypoint.sh* > > #!/bin/sh > exec "/bin/pushgateway --log.level=warn --web.enable-lifecycle > --web.enable-admin-api" > > Remove the double quotes. What you've written is to try to run a command whose filename is exactly that

[prometheus-users] avg_over_time OVER min

2020-04-30 Thread 'Albert Aleksandrov' via Prometheus Users
Hi all! Let me start with example so as to be clear. Please, look at the screenshot. [image: Заявление.jpg] As you can see there are two metrics. One have value 0. Other have value 1. In this case we consider that all values at the certain time are equal to 0. Such a kind of logical AND (min(

Re: [prometheus-users] Unable to access localhost from pushgateway pod on openshift

2020-04-30 Thread Nidhi Sharma
Yes. I tried setting this flag but the pod goes in crashloopbackoff. Below are my docker file and entrypoint.sh. *Docker file :* FROM prom/pushgateway:v0.9.0 LABEL maintainer "MYCOM OSI" # Allowed: debug, info, warn, error ENV LOGLEVEL=warn ADD /entrypoint.sh /bin/entrypoint.sh USER root RU

[prometheus-users] Re: Grouping Variable

2020-04-30 Thread Brian Candler
https://www.robustperception.io/how-to-have-labels-for-machine-roles https://www.robustperception.io/exposing-the-software-version-to-prometheus -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiv

[prometheus-users] Re: The value for first time operation is minus 1

2020-04-30 Thread Brian Candler
I don't see the problem here. I see no time in your range output where the value is not 1, and the difference between and 1 is not 1. > Looking at values in that 5 minute time window, I would expect the following for delta: => nothing 1 => nothing or 0 (I'm not sure which) 1 1

[prometheus-users] Re: Not exposing the result string correctly, that looks to be a literal \n rather than a newline.

2020-04-30 Thread Brian Candler
Yep, that looks pretty broken. Suggest you raise an issue directly with the code author (i.e. springboot, or the exporter if that's a separate piece of code) -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group a

[prometheus-users] Re: Prometheus Remote Write/Read + InfluxDB

2020-04-30 Thread Brian Candler
For doing this sort of stuff, VictoriaMetrics might suit you better. It implements the same PromQL and remote_write APIs as prometheus, but you can push and backfill data to it in various formats - whilst still letting prometheus remote_write to it as well. You can also choose to use its own

[prometheus-users] JMX Exporter Configuration to get Open Socket

2020-04-30 Thread Julian Ade Putra
Hi Expert, I have configured Prometheus and JMX Exporter for weblogic. But, i can't find Current Open Socket metric. Anyone have idea about that? Here is my jmx_exporter configuration : attrNameSnakeCase: true lowercaseOutputName: true lowercaseOutputLabelNames: true whitelistObjectNames: - "

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

2020-04-30 Thread Brian Candler
You put a reverse proxy in front, like apache or nginx. Same for prometheus itself. Same for adding HTTPS. If you want to proxy them on a particular path, like /alertmanager or /prometheus, then there are command-line flags you can set: --web.external-url=https://mon.example.net/prometheus -