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 up`target_group` should be called `static_config` in error messages #1801
Comments
This comment has been minimized.
This comment has been minimized.
|
This error is correct, and I'm not sure we can do much about it. Knowing that you meant a different SD mechanism one level up in the config would require quite a bit of sophistication, which I'm not sure is possible. |
This comment has been minimized.
This comment has been minimized.
|
although I think I see how the error comes into place technically, could you line out how you mean "correct" here with regard of promtool complaining about an error in a field that is not specified? To be more specific: I do not see yet how this is correctly labeled as an unknown field in |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
so the error reads as |
This comment has been minimized.
This comment has been minimized.
|
No, that files is not a field of the type target_group. |
This comment has been minimized.
This comment has been minimized.
|
ok, that's what I meant, thanks for clarifying. For my reading/understanding of the message, the error is wrong then. At least the colon has to go imo, because to me it looks like a separator with |
This comment has been minimized.
This comment has been minimized.
|
That is what the message means. |
This comment has been minimized.
This comment has been minimized.
|
In different news:
|
beorn7
changed the title
misleading error in at least promtool
`target_group` should be called `static_config` in error messages
Jul 11, 2016
This comment has been minimized.
This comment has been minimized.
|
Changed issue title accordingly. |
brian-brazil
added
the
kind/enhancement
label
Jul 13, 2016
grobie
referenced this issue
May 31, 2017
Merged
Fix outdated target_group naming in error message #2785
grobie
closed this
in
#2785
May 31, 2017
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. |
cherti commentedJul 10, 2016
•
edited
if you provide:
in prometheus.yml (which is wrong, it should be
file_sd_configsinstead ofstatic_configs) at least promtool complains about:FAILED: unknown fields in target_group: filesThis error is quite misleading and makes it harder to locate the actual problem.
My short digging into the topic revealed that something might be calling checkOverflow with a wrongly labeled context, but I haven't digged too far, I must admit.