Re: [prometheus-users] prometheus data storage in any database

2021-01-13 Thread Bhupendra Kumar
yes i know but i need to prometheus storage data into the database. On Thursday, January 14, 2021 at 12:44:14 PM UTC+5:30 sup...@gmail.com wrote: > Prometheus does not require an external database. > > On Thu, Jan 14, 2021 at 7:59 AM Bhupendra Kumar > wrote: > >> Hi All, >> >> As i am working

[prometheus-users] prometheus data storage in any database

2021-01-13 Thread Bhupendra Kumar
Hi All, As i am working with monitoring tools and i want setup prometheus data storage in any database, So please help me out if possible to prometheus data storage any databases. Thanks Bhupendra -- You received this message because you are subscribed to the Google Groups "Prometheus

Re: [prometheus-users] Uptime when no up metric is available

2021-01-13 Thread Tom Gregory
Hi Stuart. The metrics are coming from different scrapes. Each service is a different endpoint. I'm doing the relabelling using *metric_relabel_configs.* Is this the right approach? Regards, *Tom Gregory* On Wed, 13 Jan 2021 at 17:28, Stuart Clark wrote: > On 2021-01-13 16:11, Tom

Re: [prometheus-users] Slow with basic authentication

2021-01-13 Thread Sebas tech
Thanks! Using 4 now. The performance improved a lot. Hopefully with your proposal implementation the performance will be close to no auth. On Wednesday, 13 January 2021 at 20:38:31 UTC+1 Julien Pivotto wrote: > On 13 Jan 11:26, Sebas tech wrote: > > Enabled the basic authentication as per

Re: [prometheus-users] Slow with basic authentication

2021-01-13 Thread Julien Pivotto
On 13 Jan 11:26, Sebas tech wrote: > Enabled the basic authentication as per v2.24. > > Loading a dashboard in Grafana is a lot slower now with the node-exporter > graphs appearing slowly one by one. Is this to be expected because maybe (a > guess) each query has to be authenticated now or is

[prometheus-users] Slow with basic authentication

2021-01-13 Thread Sebas tech
Enabled the basic authentication as per v2.24. Loading a dashboard in Grafana is a lot slower now with the node-exporter graphs appearing slowly one by one. Is this to be expected because maybe (a guess) each query has to be authenticated now or is this not normal? -- You received this

Re: [prometheus-users] Tracking latency

2021-01-13 Thread Manish G
So I have added prometheus client histogram following this. Mine is spring application and I have added micrometer-registry-prometheus dependency. Any other configuration needed so that histogram data is published to

Re: [prometheus-users] Uptime when no up metric is available

2021-01-13 Thread Ben Kochie
That sounds like metric_relabel_configs, not relabel_configs. relabel_configs apply to `up` and other auto-generated metrics. On Wed, Jan 13, 2021 at 5:11 PM Tom Gregory wrote: > The relabelling process doesn't happen on the *up *metric, so the metric > doesn't have the correct labels I need

Re: [prometheus-users] Alertmanager yml - invalid leading UTF-8 octet

2021-01-13 Thread Mohan
I m trying in centos8.2 system is it something wrong in my yml file? I can't find the cause. So any help will be appreciated. On Mon, 11 Jan 2021, 4:52 pm Mohan.S, wrote: > Hello Team, > I am trying to configure the promethues alert-manager notification to > slack. i have copied the content

Re: [prometheus-users] Uptime when no up metric is available

2021-01-13 Thread Tom Gregory
The relabelling process doesn't happen on the *up *metric, so the metric doesn't have the correct labels I need for my query. To illustrate this, imagine I have two services generating metrics - service A generates metrics with a label svc="service-a" - service B generates metrics with a

[prometheus-users] Help with rule for missing SSL Cert

2021-01-13 Thread Andrew Lebbon
Hi All, Please could someone check that the expression Im using below will actually show a missing SSL Cert ? I can't find a documented way of checking for a missing cert only expiring etc: - alert: Alerts on missing Cert *expr:

Re: [prometheus-users] Help with absent data

2021-01-13 Thread Ben Kochie
If you're looking for a "percent of OK scrapes" you can use: avg_over_time(probe_success[$__range]) Then in Grafana, you can select "Percent (0 - 1)" to display the ratio as a percent. probe_success will always be returned by the blackbox_exporter is functioning properly. On Tue, Jan 12, 2021

[prometheus-users] Uptime when no up metric is available

2021-01-13 Thread Tom Gregory
I'm using Prometheus federation i.e. I'm ingesting metrics from one Prometheus to another. To do some relabelling I'm using *metric_relabel_configs*. According to the docs : *Metric relabelling

Re: [prometheus-users] Should I lock the targets file when updating it?

2021-01-13 Thread Wang Yngwie
Thanks for your reply very much, it really helps. ☺ Julien Pivotto 于2021年1月13日周三 下午9:26写道: > On 13 Jan 05:18, Wang Yngwie wrote: > > I have a big targets file, it's about 8M size and there are more than > > twenty thousand targetgroups. When Prometheus scans sd_files, my > updating > > program

[prometheus-users] API for. jmx_exporter

2021-01-13 Thread tanuj bansal
Hi, Do we have any rest API for jmx_exporter which can help to export metrics directly ? example if need jvm_heap_commited http://localhost:8080/metrics/jvm_heap_commited Thanks and regards, Tanuj Bansal -- You received this message because you

Re: [prometheus-users] Should I lock the targets file when updating it?

2021-01-13 Thread Brian Brazil
On Wed, 13 Jan 2021 at 13:18, Wang Yngwie wrote: > I have a big targets file, it's about 8M size and there are more than > twenty thousand targetgroups. When Prometheus scans sd_files, my updating > program might writing that file simultaneously. In that case, the Discovery > process may read

[prometheus-users] Should I lock the targets file when updating it?

2021-01-13 Thread Wang Yngwie
I have a big targets file, it's about 8M size and there are more than twenty thousand targetgroups. When Prometheus scans sd_files, my updating program might writing that file simultaneously. In that case, the Discovery process may read part of the file or encounter an error. Is it possible

[prometheus-users] Re: prometheus visit k8s x509 certificate signed by unknown authority

2021-01-13 Thread simple steve
when i write tls_config twice in different location,everything is Ok! - job_name: kubernetes-apiservers scheme: https tls_config: ca_file: /etc/ssl/ca.crt cert_file: /etc/ssl/client.crt key_file: /etc/ssl/client.key kubernetes_sd_configs: - role: endpoints

Re: [prometheus-users] Password Protection for my Prometheus Exporter

2021-01-13 Thread sayf eddine Hammemi
Hello, You are using the prometheus python client? because the feature is supported out of the box https://github.com/prometheus/client_python#handlers-for-authentication On Wed, Jan 13, 2021 at 8:58 AM Dhanush Eswar wrote: > Hello Everyone, > I am new to Prometheus, I am trying to add the