Re: [prometheus-users] Alert Manager source URL to point to TLS URL of Prometheus

2020-09-13 Thread Wesley Peng
You can setup Nginx to proxy both Alertmanager and Prometheus itself on different http port. regards. sunils...@gmail.com wrote: Now the challenge is , AlertManager is directly associated with PRometheus and when I access AlertManager , All the source links ate pointing to Prometheus

[prometheus-users] Alert Manager source URL to point to TLS URL of Prometheus

2020-09-13 Thread sunils...@gmail.com
Hi, I have setup prometheus with TLS using Nginx in front of Prometheus as below path. Request --> nginx --> Prometheus . Now the challenge is , AlertManager is directly associated with PRometheus and when I access AlertManager , All the source links ate pointing to Prometheus directly .

Re: [prometheus-users] Query to get list of containers and their instances

2020-09-13 Thread Julien Pivotto
On 13 Sep 18:06, kiran wrote: > Hello all > > I wanted to run a query to get list of containers along with their > instances. > I am using this query, but need to eliminate one specific > container(mnt-cadvisor) from the query result. > > sum by (instance,name) ({job='cadvisor', name!~""}) > >

[prometheus-users] Query to get list of containers and their instances

2020-09-13 Thread kiran
Hello all I wanted to run a query to get list of containers along with their instances. I am using this query, but need to eliminate one specific container(mnt-cadvisor) from the query result. sum by (instance,name) ({job='cadvisor', name!~""}) Is this the right query? I am able to get the

Re: [prometheus-users] Disable remote write retry

2020-09-13 Thread Ruben Papovyan
@bwplotka, Thanks for your response I see errors in cortex distributer 400 and 500 errors 400 will NOT be sent again however 500 will be resend and it caused outage this is two types of errors that i see in distributor, no error logs in ingesters (only 400 errors in ingesters) ``` level=warn

[prometheus-users] Redis Exporter | data not coming over grafana

2020-09-13 Thread Aman Gupta
Can anyone help me with redis exporter metrics redis version: 3.0.3 redis-exporter version: 1.10.0 exporter running at : 9121 grafana dashboard: 763 prometheus config: - job_name: 'redis_exporter' static_configs: - targets: ['DNS:9121'] target is healthy under prometheus, but still

[prometheus-users] Re: Prometheus/AlertManager to Discord

2020-09-13 Thread Brian Candler
On Sunday, 13 September 2020 14:59:39 UTC+1, Adam wrote: > > 1-Why I am not receiving alerts Discord? > You'll need to check logs to answer that. Not knowing anything about discord, I'd say the most likely problems are: 1. discord's API does not

[prometheus-users] Prometheus/AlertManager to Discord

2020-09-13 Thread Adam
Hi all, I am using alertmanager notifications with slack and email and everything is ok. Now I am trying to send the same notifications to a Discord server too via Webhooks. Using the below configurations in "/etc/alertmanager/alertmanager.yml", I can receive alerts on Slack and Email but not

[prometheus-users] Re: Question on promtool and amtool

2020-09-13 Thread kiran
Thank you, Brian On Sunday, September 13, 2020, Brian Candler wrote: > On Saturday, 12 September 2020 21:20:43 UTC+1, kiran wrote: >> >> Hello all >> >> 1. Is promtool automatically installed with Prometheus? >> > > It's supplied as part of the distribution: > > # tar -tzf

[prometheus-users] prometheus-openstack-exporter vs go-openstack exporter

2020-09-13 Thread Ehsn sa
Hi every body. can some one help me about these two different implementation of open stack exporter? which one would you suggest? and why? is there any metric to compare these two?? thanks -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group.

[prometheus-users] Re: Monitor number of seconds since metric change as prometheus time series

2020-09-13 Thread Weston Greene
I feel like this answer gives directly what you need minus one step, so forgive me if I'm misunderstanding. The one step it doesn't explicitly say is a second rule for `time() - stat__change__timestamp`. Here is an example directly from my working solution: ```rules.yaml -

Re: [prometheus-users] Re: Global Labels in Alerts

2020-09-13 Thread Ben Kochie
This is the use case for external labels, they are attached to all alerts. On Wed, Sep 9, 2020 at 12:44 PM Brian Candler wrote: > To add labels to *every* alert sent from this prometheus instance, see > alert_relabel_configs: > >

Re: [prometheus-users] prometheus delete old data files

2020-09-13 Thread Ben Kochie
TSDB blocks are automatically cleaned up, but it does this on the 2 hour block management schedule. Blocks also must be fully expired (maxTime) before they are deleted. You probably just need to wait for the maxTime on the oldest block to expire. Look in the meta.json in the TSDB block

[prometheus-users] Re: Question on promtool and amtool

2020-09-13 Thread Brian Candler
On Saturday, 12 September 2020 21:20:43 UTC+1, kiran wrote: > > Hello all > > 1. Is promtool automatically installed with Prometheus? > It's supplied as part of the distribution: # tar -tzf prometheus-2.20.1.linux-amd64.tar.gz prometheus-2.20.1.linux-amd64/ prometheus-2.20.1.linux-amd64/LICENSE

Re: [prometheus-users] Disable remote write retry

2020-09-13 Thread Bartłomiej Płotka
Hey, Unless there is some bug on the receiving side (maybe your front proxy masking the actual status code) or Cortex - both Cortex and Thanos Receive in cases of not accepting write for reasons like this (something that there is no point retrying for) returns the status code that tells