[prometheus-users] prom query time range

2020-12-09 Thread robu...@gmail.com
Hi all. I struggle with a prom query, probably not so difficult when you know how to do it ;-) I monitor how many systems are up, with count(up{job="node"} S couple of days ago this number jumped, now I like to find out what systems are "new"/haven't been there before. I can get a list of sys

Re: [prometheus-users] How to enable Multitenancy in Prometheus in Cloud foundry

2020-12-09 Thread Animesh Kumar
Hi Ben and Co, Can you please assist here? Thanks, Animesh On Wednesday, December 9, 2020 at 10:00:10 PM UTC+5:30 Stuart Clark wrote: > On 09/12/2020 15:22, Animesh Kumar wrote: > > Hi Team, > > > > Thank you for the response, > > > > Is there a document to deploy Thanos as a cloud foundry app

Re: [prometheus-users] How to enable Multitenancy in Prometheus in Cloud foundry

2020-12-09 Thread Stuart Clark
On 09/12/2020 15:22, Animesh Kumar wrote: Hi Team, Thank you for the response, Is there a document to deploy Thanos as a cloud foundry application? Unfortunately I'm not an expert in either Thanos or Cloud Foundary. Ben & co does such a thing exist that you know of? -- You received this me

Re: [prometheus-users] Hunting down the root cause of fluctuating node_filesystem_avail_bytes

2020-12-09 Thread Stuart Clark
On 09/12/2020 14:48, iono sphere wrote: I am not sure who could I ask this, but I would like to try here. Currently, I'm seeing something weird in my server. Thanks to Prometheus and Node-Exporter, I have seen that node_filesystem_avail_bytes has been fluctuating up and down for hundreds of M

Re: [prometheus-users] How to enable Multitenancy in Prometheus in Cloud foundry

2020-12-09 Thread Animesh Kumar
Hi Team, Thank you for the response, Is there a document to deploy Thanos as a cloud foundry application? Thanks, Animesh On Wednesday, December 9, 2020 at 7:24:05 PM UTC+5:30 Stuart Clark wrote: > On 09/12/2020 13:10, Animesh Kumar wrote: > > Hi Team, > > > > I am trying to check if we can ma

Re: [prometheus-users] Hunting down the root cause of fluctuating node_filesystem_avail_bytes

2020-12-09 Thread Christian Hoffmann
Hi, On 12/9/20 3:48 PM, iono sphere wrote: I am not sure who could I ask this, but I would like to try here. Currently, I'm seeing something weird in my server. Thanks to Prometheus and Node-Exporter, I have seen that node_filesystem_avail_bytes has been fluctuating up and down for hundreds o

[prometheus-users] Hunting down the root cause of fluctuating node_filesystem_avail_bytes

2020-12-09 Thread iono sphere
I am not sure who could I ask this, but I would like to try here. Currently, I'm seeing something weird in my server. Thanks to Prometheus and Node-Exporter, I have seen that node_filesystem_avail_bytes has been fluctuating up and down for hundreds of Megabytes once a day or two. So I am trying

Re: [prometheus-users] Re: Presenting network rates and throughput

2020-12-09 Thread Ben Kochie
You don't need any of the sum_over_time() or max_over_time(). Just sum(increase()) and sum(rate()). On Wed, Dec 9, 2020 at 3:17 PM Tom005 wrote: > Thanks Ben, I don't actually have that metric available, " > *node_network_receive_bytes_total*" but I do have the octets as above, > that was just f

[prometheus-users] jmx exporter dies after a few minutes

2020-12-09 Thread Ed Barc
hi I am running jmx exporter to monitor Tomcat This line has been added to /var/lib/tomcat/bin/setenv.sh CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:/opt/jmx_exporter/jmx_pro

Re: [prometheus-users] Re: Presenting network rates and throughput

2020-12-09 Thread Tom005
Thanks Ben, I don't actually have that metric available, " *node_network_receive_bytes_total*" but I do have the octets as above, that was just from someone else. I think one of these will work, but I'm struggling to understand which is correct as all of them show different output: *- sum(max_

Re: [prometheus-users] How to enable Multitenancy in Prometheus in Cloud foundry

2020-12-09 Thread Stuart Clark
On 09/12/2020 13:10, Animesh Kumar wrote: Hi Team, I am trying to check if we can make Prometheus tenant aware in such a way that there is a data separation. Prometheus has no native support for multi-tenancy. All data within a single Prometheus server is stored together. It would be possibl

[prometheus-users] how to monitor cisco switch with snmp_exporter?

2020-12-09 Thread zeinab abbaszadeh
hi, I have got a problem. could you please give me sample configure such as : generation.yml prometheus.yml prometheus.service snmp.yml all files are configured for 2 or more switch . Thanks ! -- You received this message because you are subscribed to the Google Groups "Prometheus Users" grou

[prometheus-users] Error with monitor cisco switch in prometheus

2020-12-09 Thread zeinab abbaszadeh
Hi, I have got a problem. could you please help me? An error has occurred while serving metrics: error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {}, variableLabels: []}: error walking target 192.168.241.2: Request timeout (after 3 retries) -- Y

Re: [prometheus-users] Prometheus Config Scrapping Multiple Kubernetes Cluster

2020-12-09 Thread Dinesh N
@Ben Kochie @Brian Candler @Brian Brazil Apologies for reaching out to you guys directly and but it would be really helpful if you help us on your thoughts here Any shed of lights is highly appreciated. Regards Dinesh On Wed, 9 Dec, 2020, 12:15 am dineshnithy...@gmail.com, < dineshnithyanand

[prometheus-users] How to enable Multitenancy in Prometheus in Cloud foundry

2020-12-09 Thread Animesh Kumar
Hi Team, I am trying to check if we can make Prometheus tenant aware in such a way that there is a data separation. Is there a way for this in Cloud foundry ? Thanks, Animesh -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe

Re: [prometheus-users] How do I detect a status code of 301,302 with blackbox-exporter

2020-12-09 Thread Christian Hoffmann
Hi, On 12/8/20 4:01 AM, fun...@gmail.com wrote: someone can help me? If you want to verify that your target always returns one of the two status codes, then define a custom blackbox_exporter http module with valid_status_codes: [301, 302]. I assume you will also have a Location: header in

Re: [prometheus-users] Re: Presenting network rates and throughput

2020-12-09 Thread Ben Kochie
Just *increase(node_network_receive_bytes_total[30d]) *is needed for something like a stat panel. Be sure to check the "instant" box. On Tue, Dec 8, 2020 at 8:13 PM Tom005 wrote: > Someone did say about using something like this: > *sum(max_over_time(increase(node_network_receive_bytes_total[1d]

Re: [prometheus-users] Multiple Prometheus modules

2020-12-09 Thread Ben Kochie
While the params feature allows multiple entries, the snmp_exporter can only handle one module at a time. You will need to split this until multiple jobs. On Tue, Dec 8, 2020 at 11:34 PM Jihad Ismael wrote: > Hi > > I'm trying to collect snmp_exporter from a switch and printer in > prometheus .

[prometheus-users] Expose Jetty metrics to JMX exporter

2020-12-09 Thread Ziheng Xiu
Hi, I'm trying to monitor Jetty and JVM metrics using Prometheus. Any idea how to expose Jetty metrics to JMX exporter so that I can use JMX exporter to get two sets of metrics? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscrib

Re: [prometheus-users] Re: Zero downtime upgrade of node_exporters

2020-12-09 Thread Feder John
Sounds like a valid approach, I will take this into consideration also, thanks! As a gratis, I have a bit more exotic exporters as well, for those I might need to spin up docker simulations, or do you have other recommendations? Stuart Clark a következőt írta (2020. december 9., szerda, 10:32:16

Re: [prometheus-users] Promql is a bit complicated. Is there any way to reduce the difficulty of use?

2020-12-09 Thread Allenzh li
Just now, I have search some other monitoring systems and find sysdig which have provided a cookbook which how to monitoring kubernetes. https://sysdig.com/blog/alerting-kubernetes/ This is very enlightening to me. Kind regards, Allenzh li 在2020年12月9日星期三 UTC+8 下午5:46:08 写道: > I agree wit

Re: [prometheus-users] Promql is a bit complicated. Is there any way to reduce the difficulty of use?

2020-12-09 Thread lizhihua0925
I agree with you. PromQL is a power query language and the web page can’t easily represent the power. It is also a good idea to provide examples or cookbooks. Kind regards, Allenzh li 在 2020年12月9日 16:50,Stuart Clark 写道: On 09/12/2020 08:34, Allenzh li wrote: > The key problem is that or

Re: [prometheus-users] Re: Zero downtime upgrade of node_exporters

2020-12-09 Thread Stuart Clark
The problem you would have is that all your alerts and dashboards are likely to break for those two servers anyway. Not all metrics are likely to have been renamed, so for any which exist in both versions your queries will now be returning two sets of time series per server instead of only one.

Re: [prometheus-users] node exporter error

2020-12-09 Thread Bharathwaj Shankar
It is a server running in the cloud having ubuntu 16.04 OS and not sure of kernel version. On Wednesday, December 9, 2020 at 2:33:57 PM UTC+5:30 sup...@gmail.com wrote: > Please also nclude detailed information like what the OS version is, > kernel version is, what kind of hardware. > > On Wed

Re: [prometheus-users] Re: Zero downtime upgrade of node_exporters

2020-12-09 Thread Feder John
Yes, the main painpoints are the following: - large fleet of instances - huge gab between exporter version (years, so yeah metrics were renamed a few times -> this would break dashboards) The initial reason for setting up a parallel pipeline is just my curiosity, to compare the diff be

Re: [prometheus-users] node exporter error

2020-12-09 Thread Ben Kochie
Please also nclude detailed information like what the OS version is, kernel version is, what kind of hardware. On Wed, Dec 9, 2020 at 9:16 AM Julien Pivotto wrote: > On 08 Dec 23:19, Bharathwaj Shankar wrote: > > Hi Team, > > > > can anyone help fixing the below error, > > > > level=error msg="

Re: [prometheus-users] Promql is a bit complicated. Is there any way to reduce the difficulty of use?

2020-12-09 Thread Stuart Clark
On 09/12/2020 08:34, Allenzh li wrote: The key problem is that ordinary users need to learn PromQL, even if grafana is provided, the cost of promql learning cannot be reduced. It is not easy for everyone to learn PromQL. If users need to create/update dashboards or alerts then yes they need

Re: [prometheus-users] Promql is a bit complicated. Is there any way to reduce the difficulty of use?

2020-12-09 Thread Allenzh li
The key problem is that ordinary users need to learn PromQL, even if grafana is provided, the cost of promql learning cannot be reduced. It is not easy for everyone to learn PromQL. Kind regards, Allenzh li 在2020年12月9日星期三 UTC+8 下午4:21:24 写道: > On 09/12/2020 06:50, Allenzh li wrote: > > When

Re: [prometheus-users] Promql is a bit complicated. Is there any way to reduce the difficulty of use?

2020-12-09 Thread Stuart Clark
On 09/12/2020 06:50, Allenzh li wrote: When create a prometheus alerting rule, the promql is a bit complicated for ordinary users. Since I want to hide native promql expr and labels, ordinary users only select some metric name or labels in a web page then can create a alerting rule. Is ther

Re: [prometheus-users] node exporter error

2020-12-09 Thread Julien Pivotto
On 08 Dec 23:19, Bharathwaj Shankar wrote: > Hi Team, > > can anyone help fixing the below error, > > level=error msg="ERROR: diskstats collector failed after 0.002226s: > invalid line for /proc/diskstats for nvme0n1" source="collector.go:123" That seems like a bug, could you open an issue in