Hi,
I can't seems to get more information about the unauthorized message. If the
prometheus.io/scrape is set to 'false' then the 'Unauthorized:...' message stop.
The job in prometheus.yml has a basic auth that get authenticated when scraping the custom metrics. Has anyone seen this message before?
template:
prometheus.yml |
- job_name: my_scraping_job
metrics_path: /metrics
scheme: https
static_configs:
- targets: ['some_target_endpoints']
basic_auth:
username: 'prometheus_username'
password: 'my_password''
{"_source":"middleware/auth.go:56","message":"Unauthorized: missing Authorization header, path: /metrics","severity":"info","time":"2019-08-05T15:30:14.529188149Z","timestamp":"2019-08-05T15:30:14.52917795Z"}
{"_source":"middleware/auth.go:56","message":"Unauthorized: missing Authorization header, path: /metrics","severity":"info","time":"2019-08-05T15:32:14.528995514Z","timestamp":"2019-08-05T15:32:14.528985014Z"}
{"_source":"middleware/auth.go:56","message":"Unauthorized: missing Authorization header, path: /metrics","severity":"info","time":"2019-08-05T15:34:14.528733779Z","timestamp":"2019-08-05T15:34:14.528722379Z"}
{"_source":"middleware/auth.go:56","message":"Unauthorized: missing Authorization header, path: /metrics","severity":"info","time":"2019-08-05T15:36:14.529052837Z","timestamp":"2019-08-05T15:36:14.529002138Z"}
{"_source":"middleware/auth.go:56","message":"Unauthorized: missing Authorization header, path: /metrics","severity":"info","time":"2019-08-05T15:38:14.529140299Z","timestamp":"2019-08-05T15:38:14.5291299Z"}
Thanks,
DT.