[prometheus-users] PromQL

2022-10-17 Thread ritesh patel
Hello Team,

Need help from you for PromQL query.

I want to create alert rule on prometheus alert manager and i have
prometheus query

Expr- sum by (host_name) (disk_used_percent) > 85 for warning ⚠️ level  and
same query with threshold > 95 critical level.

Now for that i need to create 2 rule for each severity. Now i have question
can we create one query for both severity like range between 85-95 warring
and 95 up critical? If yes can someone help me to write one sample query
example. So using one query i can setup alert rule.

Thanks and regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF97HMKwLYmu3qEksLwY9--S5gM7T_AUP0NR4k3%2BVH%2Bgpw%40mail.gmail.com.


[prometheus-users] System up time

2022-09-22 Thread ritesh patel
Hi All,

I have prometheus running on docker, added around 1000+ hosts as a target.
prometheus scraping metrics using telegraf.

I have one metrics which name System up time. But metrics value is not
showing as day and hours. I want total days and hours of syatem up and
running. Exp- xx.xx.xx.xx hosts up since 23days

Can someone help me to create promQL for that metrics to show value like
days and hours system running

Thanks and regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF813f5WWBcvH1zWcDWV26%3DKqaDJ0W9W%3DqNqkEQQqfLH%3DA%40mail.gmail.com.


[prometheus-users] Hashmod

2022-07-28 Thread ritesh patel
Hello Team,

Can we use Hashmod on http_sd_configs ?
I added my target from cmdb. But i want to set autoscalling on targets.
Like 1st 1500 hosts added on prometheus 1 then next 1500 added on 2nd
prometheus.

Can someone guide me how to do that?

Thanks and regards
Ritesh Patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF_riA_673bQ5Pn-DLrwFM_UNjzUs4uqOs-VC66R6tjjKg%40mail.gmail.com.


Re: [prometheus-users] Prometheus agent mode flag

2022-07-21 Thread ritesh patel
Yea, i fixed it. Using same flag on command.

Now I have one question. How to verify Prometheus working as a agent mode?

How we can verify prometheus work as a agent mode?

Thanks and Regards
Ritesh Patel

On Thu, 21 Jul 2022 at 5:49 PM, Stuart Clark 
wrote:

> On 21/07/2022 11:31, ritesh patel wrote:
>
> Hello Team,
>
> I have prometheus running ad a docker container on docker. I want to use
> prometheus as aagent mode.
> So can someone guide me where I need to put this flag —enable-feature=agent
> .
> On prometheus.yml or something else.
>
> On kubernet i did same things on pass this flag on deployment but on
> docker where?
>
> You need to adjust the command line to add that.
>
> How you do it depends on how you are managing your Docker containers. For
> example using Terraform, Docker Compose, etc. all have different methods
> for setting the command line for a container.
>
>
> --
> Stuart Clark
>
>

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF8qhDCOWxCLLMHnN4Hyx_ExN-fADTEmsA1fhxSLMUpXmA%40mail.gmail.com.


[prometheus-users] Prometheus agent mode flag

2022-07-21 Thread ritesh patel
Hello Team,

I have prometheus running ad a docker container on docker. I want to use
prometheus as aagent mode.
So can someone guide me where I need to put this flag —enable-feature=agent
.
On prometheus.yml or something else.

On kubernet i did same things on pass this flag on deployment but on docker
where?


Thanks and regards
Ritesh Patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF-As_eLECOPPwq%3DXYt6xQueDZYZQ4N-a%3DCzeugn7MWRRw%40mail.gmail.com.


[prometheus-users] Prometheus arch

2022-07-01 Thread ritesh patel
Hello Team,

I have 7000 hosts on prod Environment and i want to create new architecture
using kubernet. Which type architecture should help me. How many prometheus
getaway require?

Can someone help me how I can create architecture?

Thanks and regards
Ritesh Patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF_5-hyfuwUeOCFY__njeXv5poadKXE94mqvr1mQ091aOg%40mail.gmail.com.


[prometheus-users] Connection Timeout error

2022-06-22 Thread ritesh patel
Hello Team,

While adding 2000 hosts as a prometheus scrape targets. Only 1375 hosts
show up. Rest are 625 show down with connection timeout error.

What is the reason for that? Any idea?

Thanks and regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF9GS1MkFQUxKesDowH-fZz8%2B6vUvkkbxz_8kfmw-KjSFg%40mail.gmail.com.


[prometheus-users] Prometheus architecture

2022-06-06 Thread ritesh patel
Hello Team,

I am new on Prometheus and I want to setup brand new architecture of
prometheus.
I have 1 hosts for different different environments. How I can setup
architecture?

I am interested on docker base architecture. Like different different
prometheus host for different host. Like prod/test/UAT

Can someone please guide me.

Thanks and Regards
Ritesh

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF9AzO979V5R44ndasnP9%3DEuPHfmEV9Q8pAs-o_NkWp0jA%40mail.gmail.com.


[prometheus-users] CMDB config

2022-04-07 Thread ritesh patel
Hello Team,

Anyone have CMDB config for Prometheus.yml for target’s.

How i can add targets from CMDB directly?

Thanks and regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF9HO%3DrXqDJ_7K5SHpn-nfWgTExGSt2VY8gY0FSZO2TePQ%40mail.gmail.com.


[prometheus-users] Re: Manage target.yml

2022-03-24 Thread ritesh patel
Team anyone have idea about this?

On Wed, 23 Mar 2022 at 12:27 PM, ritesh patel 
wrote:

> Hello Team,
>
> Hope You are doing well 😍
>
> I have prometheus running on docker and My all targets are managed from
> targets.yml, now I want to know that can I manage this Targets.yml from
> puppet so if any new host spin up not required to add manually on targets.
>
> Any one have any idea about this? How it’s work and any flow chart for how
> I can manage targets.yml from puppet.
>
> Thanks and regards
> Ritesh patel
>

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF8LWm9dSKHnTp1GBpJ6T%2Bwu9OGqrhNM9Js%3DC1bshM35Vg%40mail.gmail.com.


[prometheus-users] Manage target.yml

2022-03-22 Thread ritesh patel
Hello Team,

Hope You are doing well 😍

I have prometheus running on docker and My all targets are managed from
targets.yml, now I want to know that can I manage this Targets.yml from
puppet so if any new host spin up not required to add manually on targets.

Any one have any idea about this? How it’s work and any flow chart for how
I can manage targets.yml from puppet.

Thanks and regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF93nLiyL0r8FBa9OVcGuSpMGN%2BHin6XmmqcC5X1mqp_fw%40mail.gmail.com.


Re: [prometheus-users] Target issue

2022-02-10 Thread ritesh patel
Thanks for your response.

On Thu, 10 Feb 2022, 6:20 pm Stuart Clark,  wrote:

> On 2022-02-10 12:05, ritesh patel wrote:
> > Hello Team,
> >
> > I add 2164 host as a telegraf target on prometheus.yml but only 1359
> > show up and rest are getting error.
> > Error type-
> > 1- Context deadline exceeded
> > 2- connect:connection refuses
> > 3- connect: no route to host
> > 4: dial top 10.33.217.xx:9126: i/o timeout
> >
> > Please help me what is the reason for this error. What I need to check
> > on host. What command need to hit?
> >
>
> Those are all different types of network error. You need to ensure that
> Prometheus can connect to the IP address & port listed/discovered from
> the scrape configuration.
>
> If that doesn't work it could be due to incorrect IP/port details being
> included in the configuration, firewalls not allowing access, missing
> routing information or applications not running & exposing a web server
> on the correct port.
>
> --
> Stuart Clark
>

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF_PZ2g4HOiCmSUY6NSdo5SLtCTjW16nMHkx0OHjqyT1Nw%40mail.gmail.com.


[prometheus-users] Target issue

2022-02-10 Thread ritesh patel
Hello Team,

I add 2164 host as a telegraf target on prometheus.yml but only 1359 show
up and rest are getting error.
Error type-
1- Context deadline exceeded
2- connect:connection refuses
3- connect: no route to host
4: dial top 10.33.217.xx:9126: i/o timeout

Please help me what is the reason for this error. What I need to check on
host. What command need to hit?

Thanks and regards
Ritesb patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF_FTcJa6O7KL2hAKt5zx4%2BD35CfeHMvNGTYDtpMWXrzXQ%40mail.gmail.com.


[prometheus-users] Prometheus installation

2022-02-08 Thread ritesh patel
Hello Team,

Can I run multiple prometheus as a docker container? Also can I managed
target and prometheus.yml via git/puppet?

Thanks and regards
Ritesh Patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF-7VDajc7SJE_PcaXukHJz-cxnB_QE5LrH1GygK-oxQwg%40mail.gmail.com.


Re: [prometheus-users] Common tag on metrics

2022-01-25 Thread ritesh patel
I want to add tag to metrics polled from telegraf to Prometheus.  Like
cpu_usage_system cpu_usage_guest  are original name of metrics but want to
add some tag so using that tag can setup alerts.

On Fri, 21 Jan 2022, 4:39 pm Stuart Clark,  wrote:

> On 2022-01-21 10:35, ritesh patel wrote:
> > Hello Team,
> >
> > How I can add common tags on metrics?
> > Any idea how this can be achievable?
> >
>
> You can add labels via relabling, but in general that is not advised.
> What are you trying to achieve?
>
> --
> Stuart Clark
>

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF_7KVxtRJifxekJj2cRYhS2kLT41FnZWjy0VeJLWmZn9A%40mail.gmail.com.


[prometheus-users] Common tag on metrics

2022-01-21 Thread ritesh patel
Hello Team,

How I can add common tags on metrics?
Any idea how this can be achievable?

Thanks and regards
Ritesh Patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF-8CC14L4nJix_T4hHQfCHfGvkaZ%2Bd-X8niY5KAZ%2B2bYg%40mail.gmail.com.


[prometheus-users] Common tag to metrics

2022-01-21 Thread ritesh patel
Hello Team,

I have want to monitoring 1 servers metrics via telegraf. Prometheus
running as a stand alone not in docker and kubernet.  So what is idea size
of host for running Prometheus without any failure.

Currently I have 2 core cpu and 16gb memory and 100GB disk. But if I add
2000 host as a target. Memory utilization goes very high and then
Prometheus service went down.

Please help me to setup Prometheus.

Thanks and Regards
Ritesh patel

-- 
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://groups.google.com/d/msgid/prometheus-users/CAPxUNF-z%2BU%2BRT8OXmxc5F7UmCqFUYgBZ7BObXk8zxp2RFwVgPQ%40mail.gmail.com.