My configuration:
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: "gatewaymonitor"
scrape_configs:
- job_name: "gateway"
metrics_path: "/public/metrics"
static_configs:
- targets: ["10.8.110.83:18888"]
I'm using spring cloud zuul/hystrix/ribbon all the netflix oss.
I'm able to see the hystrix metrics here>> http://10.8.110.83:18888/public/metrics
I'm not able to see any issue with my prometheus.yml.
The error I'm getting: https://ibb.co/hDXR5w
Please help.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/44a10b1b-f84b-437f-9f24-31ad2c1391cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Enable verbose logging and check the name of the problematic metric.
Prometheus metrics and label names must adhere to certain rules outlined here in the documentation, namely the metric name must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*.Hope that helps,Conor
On 7 November 2017 at 16:53, <sushan...@gmail.com> wrote:
My configuration:
global: scrape_interval: 15s evaluation_interval: 15s external_labels: monitor: "gatewaymonitor" scrape_configs: - job_name: "gateway" metrics_path: "/public/metrics" static_configs: - targets: ["10.8.110.83:18888"]I'm using spring cloud zuul/hystrix/ribbon all the netflix oss.
I'm able to see the hystrix metrics here>> http://10.8.110.83:18888/public/metricsI'm not able to see any issue with my prometheus.yml.
The error I'm getting: https://ibb.co/hDXR5w
Please help.
--
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-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/44a10b1b-f84b-437f-9f24-31ad2c1391cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The error is not in your Prometheus.yaml, it's in the data (metrics) coming from your target at 10.8.110.83:18888/public/metrics
Try curling that address and see what it gives you.
Nicholas
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7d208346-e525-4f7e-8f2d-e7decf53be5d%40googlegroups.com.
That data is json, not the Prometheus text format [0].
I have a feeling you are not using a Prometheus client library [1].
Nicholas
[0] https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-details
[1] https://prometheus.io/docs/instrumenting/clientlibs/
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/53cc1f66-4482-4b7e-b1dd-b1ac5db13979%40googlegroups.com.
<dependency>
<groupId>de.ahus1.prometheus.hystrix</groupId>
<artifactId>prometheus-hystrix</artifactId>
<version>3.3.1</version>
</dependency>
That error means you have an extra help line for that metric.
You are only allowed one `HELP` line above the first occurrence of a metric.
Allowed:
# HELP metric_name
metric_name{label="exampleA"} 1
metric_name{label="exampleB"} 1
[...]
Not Allowed:
# HELP metric_name
metric_name{label="exampleA"} 1
# HELP metric_name
metric_name{label="exampleB"} 1
[...]
Nicholas
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5ebd1a15-0eb9-4e1d-bc64-3fd7770eded6%40googlegroups.com.