Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

query returned wrong number of labels: 1, 0 #189

Closed
wenerme opened this issue Aug 8, 2020 · 3 comments
Closed

query returned wrong number of labels: 1, 0 #189

wenerme opened this issue Aug 8, 2020 · 3 comments
Labels
Bug Something isn't working

Comments

@wenerme
Copy link

wenerme commented Aug 8, 2020

but query process_start_time_seconds will failed on prom-b, prom-a can execute correctly

remote_read: remote server http://10.1.1.3:9202/read returned HTTP status 500 Internal Server Error: query returned wrong number of labels: 1, 0

https://github.com/timescale/timescale-prometheus/blob/6693256251629559a609f9e7f56131d6107eba2f/pkg/pgmodel/sql_reader.go#L252

both node_exporter and postgres_exporter has process_start_time_seconds metric

error log

{
  "caller": "read.go:45",
  "err": "query returned wrong number of labels: 1, 0",
  "level": "warn",
  "msg": "Error executing query",
  "query": {
    "queries": [
      {
        "start_timestamp_ms": 1596877133800,
        "end_timestamp_ms": 1596881033800,
        "matchers": [
          { "name": "__name__", "value": "process_start_time_seconds" }
        ],
        "hints": {
          "step_ms": 14000,
          "start_ms": 1596877133800,
          "end_ms": 1596881033800
        }
      }
    ]
  },
  "storage": "PostgreSQL",
  "ts": "2020-08-08T10:03:53.854Z"
}
@JLockerman
Copy link
Contributor

This should be fixed by PR #184

@JLockerman JLockerman added Bug Something isn't working priority/sev1 labels Aug 17, 2020
@cevian
Copy link
Contributor

cevian commented Aug 19, 2020

@wenerme This should be fixed in release 0.1.0-beta.2. Can you please confirm?

@wenerme
Copy link
Author

wenerme commented Aug 20, 2020

Works now.

@wenerme wenerme closed this as completed Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants