[prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread Jack Chew
Hey guys, How i check up == 0 in 1week accourd by instacne. 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...@g

Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread sayf eddine Hammemi
Hello, you can use offset to go back in time given you have enabled data retention for at least one week Exp: rate(http_requests_total[5m] offset 1w) (change it accordingly to your metrics) On Mon, Jul 6, 2020 at 9:18 AM Jack Chew wrote: > Hey guys, > > >How i check up == 0 in 1week acco

[prometheus-users] Re: prometheus not scrapping targets when timestamp field is present

2020-07-06 Thread Venkata Bhagavatula
Hi All, Can any one respond to my queries? Also we observed the following: 1. If for eg timestamp(epoch) in the scrape is 12:00:00, then prometheus is not scrapping the targets 2. If for eg timestamp(epoch) in the scrape is 12:00:01, then prometheus is scrapping the targets. Thanks & regards, Chal

Re: [prometheus-users] SNMP-Exporter: How to handle Not Accessible Index

2020-07-06 Thread Ben Kochie
Can you share the MIB? On Sat, Jul 4, 2020 at 9:27 PM 0815Profil Ohneprofil wrote: > Hi, > > I have a Broadcast Video router which has „Not Accessible Indices“ > So I can‘t perform a lookup... > > The Indices are just Id-counters. > Such as frame-id or slot-Id ... > Multi-Index with no chance to

[prometheus-users] Query with diivision

2020-07-06 Thread Альберт Александров
Hi all! Have such metrics: [image: photo_2020-07-06_10-30-12.jpg] I would like to query: (rules_job_count{cluster="loco-prod", status="failed"} + > rules_job_count{cluster="loco-prod", status="cancelled"}) / > rules_job_count{cluster="loco-prod", status="finished"} But this didn't work

Re: [prometheus-users] Query with diivision

2020-07-06 Thread Aliaksandr Valialkin
Try the following query: (rules_job_count{cluster="loco-prod", status="failed"} + ignoring(status) rules_job_count{cluster="loco-prod", status="cancelled"}) / ignoring(status) rules_job_count{cluster="loco-prod", status="finished"} It instructs Prometheus to ignore the `status` label when perform

Re: [prometheus-users] Re: prometheus not scrapping targets when timestamp field is present

2020-07-06 Thread Aliaksandr Valialkin
Prometheus doesn't support storing historical data and samples with out-of-order timestamps. If you need writing such data, then take a look at other Prometheus-inspired solutions. See, for example, https://victoriametrics.github.io/#backfilling . On Mon, Jul 6, 2020 at 10:31 AM Venkata Bhagavatul

Re: [prometheus-users] Query with diivision

2020-07-06 Thread Альберт Александров
I suspected there is something wrong with labels. Thanks for your answer! That worked понедельник, 6 июля 2020 г., 11:19:12 UTC+3 пользователь Aliaksandr Valialkin написал: > > Try the following query: > > (rules_job_count{cluster="loco-prod", status="failed"} + ignoring(status) > rules_job_co

[prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Jacek 1974
Hi, pls help I don't know where is The problem. I have installed ActiveMQ in docker, something like: https://hub.docker.com/r/webcenter/activemq/, AMQ: -p 8161:8161 -p 61616:61616 -p 61613:61613 \ according to: https://github.com/prometheus/jmx_exporter I want to run jmx exporter on my AMQ ser

[prometheus-users] How Protected Prometheus (OpenID Auth enaled) can be use as target in federation Prometheus scrape config

2020-07-06 Thread chandan kashayp
Hello Guys, I am stuck at point by doing integration of openid auth enabled prometheus to federation. Let me explain in detail about the configuration and blocker. My slave Prometheus is openid auth enabled. Whenever, We try to access the prometheus it ask for login authentication and get us

Re: [prometheus-users] How Protected Prometheus (OpenID Auth enaled) can be use as target in federation Prometheus scrape config

2020-07-06 Thread Stuart Clark
On 2020-07-06 11:17, chandan kashayp wrote: Hello Guys, I am stuck at point by doing integration of openid auth enabled prometheus to federation. Let me explain in detail about the configuration and blocker. My slave Prometheus is openid auth enabled. Whenever, We try to access the prometheus i

Re: [prometheus-users] How Protected Prometheus (OpenID Auth enaled) can be use as target in federation Prometheus scrape config

2020-07-06 Thread chandan kashayp
What would be the other auth methods suitable in my case. I didn't find any docs which relate like how federate Prometheus can access slave targets if it have some auth is involved. On Monday, 6 July 2020 16:05:42 UTC+5:30, Stuart Clark wrote: > > On 2020-07-06 11:17, chandan kashayp wrote: > >

Re: [prometheus-users] Re: Prometheus as Windows Service

2020-07-06 Thread Eivind Gussiås Løkseth
I found this thread after first finding the GitHub issue where the question was asked initially. I would like to add a comment to that issue to link directly to this tread, but unfortunately the issue is locked and only participants can add more comments to it. So maybe you could, @thebitt? Thi

[prometheus-users] Apache exporter

2020-07-06 Thread Yasmine Mbarek
I have more than one apache server on the same machine working on different ports , is there any way to monitor all of them with only one service ? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop rece

Re: [prometheus-users] Apache exporter

2020-07-06 Thread sayf eddine Hammemi
Given the impossibility of multiple processes listening on the same port on the same server, you need to add a proxy service that will collect the metrics from all the servers and expose it in one endpoint. You need also to worry about is the unicity of metrics because all apache will be exposing t

[prometheus-users] Prometheus query using variables from grafana templates having spaces doesn't work

2020-07-06 Thread Debashish Ghosh
Hi, I have created a grafana template varaible to extract names of organizations from Prometheus db using query label_values(custom_message_volume_endpoint_organization_total,Organization). This yields organization names that have spaces in some cases .. For example OrgA OrgB product1 OrgC pr

Re: [prometheus-users] Prometheus query using variables from grafana templates having spaces doesn't work

2020-07-06 Thread sayf eddine Hammemi
Hello, did you try strict equality instead of regex? On Mon, Jul 6, 2020 at 5:01 PM Debashish Ghosh wrote: > Hi, >I have created a grafana template varaible to extract names of > organizations from Prometheus db using query > > label_values(custom_message_volume_endpoint_organization_total,O

Re: [prometheus-users] How Protected Prometheus (OpenID Auth enaled) can be use as target in federation Prometheus scrape config

2020-07-06 Thread Aliaksandr Valialkin
Prometheus supports basic auth and/or mutual TLS for scraping targets - see `basic_auth` and `tls_config` sections in https://prometheus.io/docs/prometheus/latest/configuration/configur

[prometheus-users] Alertmanager webhook timeout

2020-07-06 Thread Murali Krishna Kanagala
Hello everyone, Can someone help me on how can I change the webhook timeout settings for a webhook? Also in an alert route if AM is waiting for a webhook response does it holds of the rest of the pipeline until that Thanks! -- You received this message because you are subscribed to the Google

[prometheus-users] mysqld-exporter mysql_heartbeat_lag_seconds and server_id label - HOW?

2020-07-06 Thread Stefan Szebinski
mysqld_exporter contains some useful code for a check on heartbeat lagging groups: - name: example.rules rules: - record: mysql_heartbeat_lag_seconds expr: mysql_heartbeat_now_timestamp_seconds - mysql_heartbeat_stored_timestamp_seconds ... - alert: MySQLReplicationLag expr: (mys

[prometheus-users] Making TCP Checks Critical based on Response Time.

2020-07-06 Thread yagyans...@gmail.com
Hi. On some of my services I have setup some TCP Port Checks using blackbox. Now, I want those checks to be critical based on the Response Time of those TCP Checks. Is it possible to do so? My TCP job. - job_name: 'blackbox_Service-TCPChecks' scrape_timeout: 10s metrics_path: /probe

[prometheus-users] No datapoint after upgrading to kubernetes 1.16.8 (aks)

2020-07-06 Thread dinor geler
Hello all , i was redirected from github to here , appreciate the help on the subject below : What did you do? upgraded my cluster to 1.16.8 What did you expect to see? to see graphs of the rules i have. What did you see instead? Under which circumstances? am not able to see some metrics like

[prometheus-users] aws_elb_un_healthy_host_count_average incorrect value

2020-07-06 Thread 'Roman Vogman' via Prometheus Users
Currently, we have a total of 10 unhealthy hosts under a specific ELB, hosts are in different AZs. aws_elb_un_healthy_host_count_average metric returns 10 unhealthy hosts for each AZ: aws_elb_un_healthy_host_count_average{load_balancer_name="foo",availability_zone="us-west-2c",} 10.0 aws_e

[prometheus-users] prometheus remote_read doesn't work if external_labels added after metric wrote to influxdb

2020-07-06 Thread 艾客
my question:* thanos can't query prometheus old data which have to read from influxdb by remote_read* env: prometheus version=2.6.0 thanos, version 0.12.2 config: scrape_configs: - job_name: 'federate' scrape_interval: 15s honor_labels: true metrics_path: '/federate'

[prometheus-users] Re: No joy from Prometheus snapshot

2020-07-06 Thread Mike Spreitzer
I suspected the relative directory and then noticed the double equal in the prometheus command line. So I erased the old snapshot and tried again. sysop@r26data0:/var/lib/prometheus/snapshots$ ls sysop@r26data0:/var/lib/prometheus/snapshots$ curl -X POST http: //localhost:30909/api/v1/admin/tsdb

[prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Jacek 1974
Anybody? -- 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://gro

Re: [prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Wesley
what's the log and error message? Jacek 1974 wrote: Anybody? -- 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

[prometheus-users] Re: No joy from Prometheus snapshot

2020-07-06 Thread Mike Spreitzer
Interestingly, the Prometheus server running against the new snapshot logged some compactions after about a minute. ... level=info ts=2020-07-07T01:57:08.694Z caller=main.go:646 msg="Server is ready to receive web requests." level=info ts=2020-07-07T01:58:18.185Z caller=compact.go:441 component=

[prometheus-users] Where and How to declare the ---storage.tsdb.retention.time=90d flag

2020-07-06 Thread Anirudh Pasalapudi
Hello, I deployed prometheus using automation and I used a shell file to run the configuration file of prometheus. The contents of the file are mentioned below. However currently the default storage retention period is 15d. I want this to be changed to 90d. I tried to declare the flag --stora

Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread Jack Chew
I try rate(up{idc="azure"}[5m] offset 1w) and then all value is 0. I need check the node within 1 week down time(up==0). 在 2020年7月6日星期一 UTC+8下午3:23:56,sayf eddine Hammemi写道: > > Hello, you can use offset to go back in time given you have enabled data > retention for at least one week > Exp: rate

Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread sayf eddine Hammemi
rate() was an example, dont use it in your case On Tue, Jul 7, 2020 at 6:21 AM Jack Chew wrote: > I try rate(up{idc="azure"}[5m] offset 1w) and then all value is 0. I need > check the node within 1 week down time(up==0). > > 在 2020年7月6日星期一 UTC+8下午3:23:56,sayf eddine Hammemi写道: >> >> Hello, you c

Re: [prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Jacek 1974
As you see in the first post thats all, there is nothing more. Theoretically it shoul work with cmd (github.com/prometheus/jmx_exporter): java -javaagent:./jmx_prometheus_javaagent-0.13.0.jar=8080:config.yaml -jar yourJar.jar but it doesn't work in my case. W dniu wtorek, 7 lipca 2020 04:1

[prometheus-users] Grafana additionalDataSources config for Azure plugin.

2020-07-06 Thread Zhang Zhao
I was configuring Azure plugin as an additional Data source in values.yaml for Grafana in stable/prometheus-operator helm chart so that the custom data sources will be restored automatically if for some reason Grafana gets re-deployed. However the config below didn't work as expected. Any advice