[prometheus-users] Re: field eureka_sd_configs not found in type config.plain

2020-12-17 Thread Tallmad Liang
ignore, my fault, the version is not 2.23.0 在2020年12月18日星期五 UTC+8 下午2:40:23 写道: > config file refer to > https://github.com/prometheus/prometheus/blob/release-2.23/documentation/examples/prometheus-eureka.yml > > 在2020年12月18日星期五 UTC+8 下午2:03:21 写道: > >> I am using prometheus-2.23.0.darwin-amd6

[prometheus-users] Re: field eureka_sd_configs not found in type config.plain

2020-12-17 Thread Tallmad Liang
config file refer to https://github.com/prometheus/prometheus/blob/release-2.23/documentation/examples/prometheus-eureka.yml 在2020年12月18日星期五 UTC+8 下午2:03:21 写道: > I am using prometheus-2.23.0.darwin-amd64 on my Mac. > My config file: > > global: > scrape_interva

[prometheus-users] Scraping Kubernetes metrics from standalone Prometheus Instance

2020-12-17 Thread Sakthi Raam
Hi All, We have restrictions to deploy Prometheus inside Kubernetes environment due to shared infrastructure but we still need to scrape all the node/services/endpoints/pod level metrics using service discovery approach. When I checked almost all the posts in internet are referring to Prometheus i

[prometheus-users] field eureka_sd_configs not found in type config.plain

2020-12-17 Thread Tallmad Liang
I am using prometheus-2.23.0.darwin-amd64 on my Mac. My config file: global: scrape_interval: 15s scrape_configs: - job_name: "prometheus" static_configs: - targets: ["localhost:9090"] - job_name: "lion" eureka_sd_configs: - server: "http://loc

[prometheus-users] How to design a well target labels scheme?

2020-12-17 Thread Allenzh li
Hi I use prometheus to monitor service. At first, it was simple. I use four labels(team, product, service, instance) to identify a service, the metric like ``` metric_name{team="t1", product="p1", instance="i1", service="s1", other business label} ``` I also use the four labels with other la

Re: [prometheus-users] Preserve labels during Aggregation

2020-12-17 Thread Stuart Clark
On 17/12/2020 22:43, Raghu Udiyar wrote: I supposed it wouldn't be an aggregation - its more like a filter. What I want is to return the series with the max value, with all labels intact. -- It does sound a bit like you are wanting topk. Does that do what you are looking for? -- You receiv

Re: [prometheus-users] combine 2 querues

2020-12-17 Thread Christian Hoffmann
Hi, On 2020-12-17 23:06, Alan Miller wrote: The problem is that my "instance" fields are IP address:port (eg: 10.123.5.5:9182). The best solution would be to fix exactly this. ;) https://www.robustperception.io/controlling-the-instance-label So this query returns the instances and what looks

Re: [prometheus-users] Preserve labels during Aggregation

2020-12-17 Thread Raghu Udiyar
I supposed it wouldn't be an aggregation - its more like a filter. What I want is to return the series with the max value, with all labels intact. -- 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] Preserve labels during Aggregation

2020-12-17 Thread Stuart Clark
On 17/12/2020 17:57, Raghu Udiyar wrote: Hello When using aggregations such as `max(metric1) by (lable1)`, all the other labels are stripped. Is it possible to preserve the labels, akin to *selecting* the `max` series. This is more of a filter, not an aggregation. I'm not quite sure I unde

[prometheus-users] combine 2 querues

2020-12-17 Thread Alan Miller
I'm trying to create a prometheus rule that will detect when CPU usage is above 95% only on hostnames matching a string (eg: "^as(.*)" which are my application servers. The problem is that my "instance" fields are IP address:port (eg: 10.123.5.5:9182). So this query returns the instances and w

[prometheus-users] Prometheus virtual dev summit 2020 5 meeting notes are now public

2020-12-17 Thread Richard Hartmann
Dear all, please see https://docs.google.com/document/d/1iO1QHRyABaIpc6xXB1oqu91jYL1QQibEpvQqXfQF-WA Best, Richard -- 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

Re: [prometheus-users] Prometheus Query with Dates

2020-12-17 Thread L.walid (PowerM)
Hi, Did you try Range vectors to have the results you are looking for ? https://timber.io/blog/promql-for-humans/ Sent from my iPhone On Dec 17, 2020, at 7:31 PM, arnav...@gmail.com wrote:  Hi, Is it possible to query Prometheus with Dates? For example: using start date and end date to qu

[prometheus-users] Prometheus Query with Dates

2020-12-17 Thread arnav...@gmail.com
Hi, Is it possible to query Prometheus with Dates? For example: using start date and end date to query the value of a metric between those dates. Thanks, Arnav -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this

[prometheus-users] Preserve labels during Aggregation

2020-12-17 Thread Raghu Udiyar
Hello When using aggregations such as `max(metric1) by (lable1)`, all the other labels are stripped. Is it possible to preserve the labels, akin to *selecting* the `max` series. This is more of a filter, not an aggregation. Thanks -- You received this message because you are subscribed to th