Comments (5)
instance="vmffkbuen01.ffkbu.lan:9399", ip_version="4", job="node"
Prometheus adds the instance
and job
labels itself, and may not come up with the exact same spelling.
The values from your exporter will be stored as exported_instance
and exported_job
.
Try removing these parts from your query, and see if it works.
You ignored many requests in the issue template, which makes it harder to help you.
I will close this as the information supplied does not indicate a bug.
from prometheus.
@bboreham The values I showed you are from within prometheus. They are the actual data which prometheus shows me. What do you mean by "may not come up with the exact same spelling"?
For example if my query is
bird_protocol_up{env="prd", export_filter="(unnamed)", import_filter="(unnamed)", instance="vmffkbuen01.ffkbu.lan:9399"}
Prometheus shows me results like
bird_protocol_up{env="prd", export_filter="(unnamed)", import_filter="(unnamed)", instance="vmffkbuen01.ffkbu.lan:9399", ip_version="4", job="node", name="ffwiel", proto="BGP", server="vmffkbusv01", state="Active Socket: No route to host"}
Now when I try to use the query in conjunction with state="Active Socket: No route to host"
e.g.
bird_protocol_up{env="prd", export_filter="(unnamed)", import_filter="(unnamed)", instance="vmffkbuen01.ffkbu.lan:9399",state="Active Socket: No route to host"}
I get zero results. So either the label state
is messing things up or Prometheus can't handle spaces in labels.
from prometheus.
OK I misunderstood what your first line showed.
Prometheus is fine with spaces in label values.
Are you doing range queries or instant queries? Maybe the data varies from time to time?
Perhaps some screen grabs would make the situation clearer.
from prometheus.
Query 2:
from prometheus.
Thanks for that. To rule out the "data varies from time to time" explanation, can you please try again with a value in the "Evaluation time" box, e.g. "2024-04-01 06:00:00".
As a check, I found a series in a publicly-accessible Prometheus that has a space in a label:
http://prombench.prometheus.io/prometheus-meta/graph?g0.expr=kubernetes_build_info%7Bgo_version%3D%22go1.20.10%20X%3Aboringcrypto%22%7D&g0.tab=1&g0.stacked=0&g0.show_exemplars=0&g0.range_input=1h&g0.end_input=2024-04-01%2009%3A00%3A00&g0.moment_input=2024-04-01%2009%3A00%3A00
It is possible that what looks like a space in your data is not actually a space. You'd need to examine the data at a lower level to detect that, e.g. using curl
to hit the API directly like this:
curl 'http://prombench.prometheus.io/prometheus-meta/api/v1/query?query=kubernetes_build_info%7Bgo_version%3D%22go1.20.10+X%3Aboringcrypto%22%7D&time=1711962000' | od -c
from prometheus.
Related Issues (20)
- [Feature] Add new labels to time series
- Prometheus Mixin Dashboard: Prometheus/Overview Grafana Dashboard Using Deprecated Angular components HOT 2
- remote write 2.0 - decide how to handle no metadata found
- remote write 2.0 - decide whether addition of metadata should count towards max samples in write request
- remote write 2.0 - update write handler benchmarks for 2.0 format
- remote write 2.0 - DRY the queue manager code HOT 2
- feat: Move remote write receive to runtime reloadable config HOT 1
- [flaky test] TestEvaluations/testdata/native_histograms.test HOT 1
- ui (tests): Add tests for Native histogram helpers HOT 2
- remote write 2.0 - update `TestSampleDelivery` to check for metadata in 2.0 proto
- remote write 2.0 - update test for old samples filtering for 2.0
- @ modifier with future return inconsistent value for sum_over_time HOT 4
- Prometheus stucks on protection from Host Header Injection HOT 1
- SIGSEGV after writing block HOT 13
- Not enough memory resources HOT 2
- `navigator.clipboard` may not be available HOT 2
- Prometheus Staleness Issue on Fedora 39 HOT 1
- Prometheus reload not exist block: opening storage failed
- Metrics in "/actuator/prometheus" are not consistent in a multi nodes environment (kubernetes) HOT 1
- Recommendation for PGO with Prometheus HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.