Home > Back-end >  Great god Prometheus 406 o glad
Great god Prometheus 406 o glad

Time:11-25

http://localhost:17001/actuator/prometheus

ERROR 406 page: HTTP

CodePudding user response:

Post your screenshots of the request and response

CodePudding user response:

Information you provide is limited, but 406 is the client is unusual, 406 refers to the content of the request returns does not meet your request in the Accept header definition, for example/physical/Prometheus need to Accept: text/plain, I guess you are either Accept write wrong, or is likely to be the introduction of processing json jar, cause/physical/Prometheus returns json, rather than the text

CodePudding user response:

Application. Yml file configuration below
Management:
Endpoints:
Web:
Exposure:
Include: the info, the health, Prometheus
Server:
The servlet:
The context path:/
Port: 17001
Pom. The XML below introduction

Org. Springframework. Boot
Spring - the boot - starter - actuator


IO. Micrometer
Micrometer - registry - prometheus

CodePudding user response:

  • Related