[prometheus-users] questions about testing patterns and metric registration in Go

2020-04-03 Thread Victor Watkins
Hi! This question is about best practices for testing applications that use client_golang to instrument with custom metrics and avoiding the dreaded "duplicate metrics collector registration attempted". Let's say I have an HTTP handler for an app that keeps a counter. The counter can be page

[prometheus-users] SNMP_Exporter Output

2020-04-03 Thread yesmine kessentini
Hello ! when running ./snmp_exporter i don't know why my output format is like this , # TYPE ifDescr gauge ifDescr{ifDescr="PortA"} 1 ifDescr{ifDescr="PortB"} 1 ifDescr{ifDescr="PortC"} 1 ifDescr{ifDescr="PortD"} 1 ifDescr{ifDescr="PortE"} 1 ifDescr{ifDescr="PortF"} 1 ifDescr{ifDescr="PortG"}

Re: [prometheus-users] Re: Data getting corrpted - missing meta.json

2020-04-03 Thread Robin Pharaoh
Hi Christian, This does appear to be the issue. In the Azure ecosystem Azure Disks should be posix compliant, would switching to those resolve the issue or would we still have issues with NFS? Reference at the very bottom of this link:

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-03 Thread Christian Hoffmann
Hi Sunil, On 4/3/20 6:00 PM, Sagar wrote: > For more information , there are more global labels (such as > environment, cluster , etc) apart from replica . > > Do I need to remove other global variables and maintain only one label > as replica . You need to drop those labels which are used to

[prometheus-users] Re: Data getting corrpted - missing meta.json

2020-04-03 Thread Robin Pharaoh
Was this ever resolved? We are hitting a the exact same issue right now. We have a single instance of prometheus We are using Azure File Share with a volume claim On Tuesday, February 18, 2020 at 10:16:44 PM UTC-5, Guru SD wrote: > > Hello, > > We have a clustered Prometheus setup but with a

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-03 Thread Belmark Caday
On Friday, April 3, 2020 at 3:02:45 PM UTC+8, Brian Candler wrote: > > Expression 1 uses a range vector (data over a 1 hour time window) with > predict_linear. However if you only provide one data point, then there's > no way it can do linear regression to fit a line. > I already

Re: [prometheus-users] Node-Exporter version compatibility

2020-04-03 Thread Christian Hoffmann
Hi, On 4/3/20 5:49 PM, Кирилл Новиков wrote: > Are new versions of Node-Exporter >  for Prometheus compatible > to older versions? Is someone automatically update this exporter without > any check's?  Technically, node_exporter is still pre-1.0 (1.0

[prometheus-users] Re: Node-Exporter version compatibility

2020-04-03 Thread Brian Candler
node_exporter is still pre-1.0.0 so metrics and/or CLI flags may change between versions. Read the release notes . -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-03 Thread Sagar
Hi Christian , Thank you for helping me on this. For some reason, I am not able to drop these global labels . I tried config as mentioned in link you shared . For more information , there are more global labels (such as environment, cluster , etc) apart from replica . Do I need to remove other

[prometheus-users] Node-Exporter version compatibility

2020-04-03 Thread Кирилл Новиков
Are new versions of Node-Exporter for Prometheus compatible to older versions? Is someone automatically update this exporter without any check's? -- You received this message because you are subscribed to the Google Groups "Prometheus Users"

[prometheus-users] compaction failed: delete persisted head block after failed db reload

2020-04-03 Thread Robin Pharaoh
We are using prometheus version 2.15.2 and started seeing compaction failures that are causing all database files after the initial issue to fail to load. In the graph this looks like a large gap from the start of failure to where the in-memory database begins. I've out exact names,

[prometheus-users] node_exporter for Applied Micro APM82181 Embedded Power Processor running Debian (My WD myBook 2TB)

2020-04-03 Thread Danny de Waard
I am looking for a node_exporter that I can run on my WD myBook 2TB NAS. Can anyone help me? -- 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] Re: Monitor number of seconds since metric change as prometheus time series

2020-04-03 Thread Weston Greene
ANSWERED! >From Stackoverflow: Summing up our discussion: the evaluation interval is too big; after 5 minutes, a metric becomes [stale][1]. This means that when the expression is evaluated, the right hand side of your `OR` expression is no longer considered by Prometheus and thus is always

[prometheus-users] Re: Writing prometheus test with metric operations/function

2020-04-03 Thread Brian Candler
Expression 1 uses a range vector (data over a 1 hour time window) with predict_linear. However if you only provide one data point, then there's no way it can do linear regression to fit a line. Expression 2 performs an operation between two different metrics, but you've only provided a data