Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
410 views
in Technique[技术] by (71.8m points)

promql - Custom Prometheus metrics not queryable

I've got Prometheus running on a bare metal Ubuntu server, no Kubernetes or Docker. I want to monitor a custom hardware BrightSign Player (BSP) via their plugin extensibility solution. I've got the BSP endpoint returning what I believe to be a valid OpenMetrics, though I'm happy to be wrong if this is my problem.

Custom metrics response

The Targets screen in the Prometheus UI reports that the endpoint is up and I believe the syntax is correct because while developing when I did have a syntax error, there was a relevant error message on this page.

Targets Looking OK

When I search for either of these metrics nothing is returned

No metrics

This is the relevant bit of prometheus.yml

- job_name: 'bsp-001'
  static_configs:
  - targets: ['10.1.5.21:8081']

Is there something else necessary for custom metrics to be queryable in Prometheus? I'm brand new to this tool so don't assume I didn't miss something obvious. Thank you!

question from:https://stackoverflow.com/questions/65906499/custom-prometheus-metrics-not-queryable

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...