You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use prometheus as a metrics receiver, and use file-based service discovery. But it scrape failed. The error message is 2020-08-31T17:06:34.178+0800 INFO scrape/scrape.go:972 {"component_kind": "receiver", "component_type": "prometheus", "component_name": "prometheus", "level": "debug", "scrape_pool": "dummy", "target": "http://192.168.100.162:8079/metrics", "msg": "Append failed", "err": "unable to find a target group with job=logic.cmdb_service"}
The reason may be a job label added to the json file.
I use prometheus as a metrics receiver, and use file-based service discovery. But it scrape failed. The error message is
2020-08-31T17:06:34.178+0800 INFO scrape/scrape.go:972 {"component_kind": "receiver", "component_type": "prometheus", "component_name": "prometheus", "level": "debug", "scrape_pool": "dummy", "target": "http://192.168.100.162:8079/metrics", "msg": "Append failed", "err": "unable to find a target group with job=logic.cmdb_service"}
The reason may be a job label added to the json file.
The collector config file is
The
targets.json
isI want to use the
job
key to rewrite the scrape job name.How can I resolve it?
The text was updated successfully, but these errors were encountered: