wangaocong opened a new issue, #2566:
URL: https://github.com/apache/hertzbeat/issues/2566
### Question
metrics:
- name: auth
priority: 0
fields:
- field: access_token
type: 1
- field: refresh_token
type: 1
protocol: http
http:
host: 10.34.63.43
port: 32427
url: /realms/quickstart/protocol/openid-connect/token
timeout: 6000
method: POST
payload:
client_id=vue-app&username=ksadmin&password=123456&grant_type=password
headers:
content-type: application/x-www-form-urlencoded
parseType: jsonPath
parseScript: '$'
- name: actuator
priority: 1
fields:
- field: status
type: 1
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: ^_^uri^_^
timeout: ^_^timeout^_^
method: GET
ssl: ^_^ssl^_^
authorization:
type: Bearer Token
bearerTokenToken: ^_^access_token^_^
parseType: jsonPath
parseScript: '$'
以上是我的模板配置。当我把token 写死时是可以获取到第二个接口的返回信息,但是换成参数就提示401
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
notifications-unsubscr...@hertzbeat.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org
For additional commands, e-mail: notifications-h...@hertzbeat.apache.org