Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus 2: no token found for scraping target #2959
Comments
brian-brazil
added
kind/bug
dev-2.0
labels
Jul 17, 2017
This comment has been minimized.
This comment has been minimized.
|
A leading underscore on a labelname is discouraged, however it is supported. |
juliusv
self-assigned this
Jul 17, 2017
This comment has been minimized.
This comment has been minimized.
|
Fixing. |
juliusv
added a commit
that referenced
this issue
Jul 17, 2017
juliusv
referenced this issue
Jul 17, 2017
Merged
Allow metric and label names to begin with underscores #2961
This comment has been minimized.
This comment has been minimized.
|
Fix in #2961 |
juliusv
added a commit
that referenced
this issue
Jul 18, 2017
This comment has been minimized.
This comment has been minimized.
|
Can this be closed? |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve Thanks, yes, closing. I don't understand why this issue wasn't auto-closed, since #2961 contained a "Fixes ..." mention for this issue in the commit and PR description. |
juliusv
closed this
Jul 21, 2017
This comment has been minimized.
This comment has been minimized.
|
That is because issues are closed only when merges happen into the default branch of the repo. I was also surprised and had to look the exact rules up. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
iobestar commentedJul 17, 2017
What did you do?
Set up monitoring side-by side Prometheus 1.x and Prometheus 2.x
What did you expect to see?
Identical set of active scraping targets.
What did you see instead? Under which circumstances?
Some scraping targets are down on Prometheus 2.x with exception "no token found".
prometheus, version 2.0.0-beta.0 (branch: master, revision: 2b5d915)
build user: root@fc24486243df
build date: 20170712-12:24:53
go version: go1.8.3
After troubleshooting I discover that a problem is in label name. When metric has label which starts with underscore scraping fails. For example:
FAILS: DatabaseInvoker_MaxWorkers{_name="Main",} 10.0
OK: DatabaseInvoker_MaxWorkers{name="Main",} 10.0