Skip to content

refactor: parse response by xml path in http collect#2593

Closed
Carpe-Wang wants to merge 25 commits intoapache:masterfrom
Carpe-Wang:xml_path_23_8
Closed

refactor: parse response by xml path in http collect#2593
Carpe-Wang wants to merge 25 commits intoapache:masterfrom
Carpe-Wang:xml_path_23_8

Conversation

@Carpe-Wang
Copy link
Contributor

@Carpe-Wang Carpe-Wang commented Aug 24, 2024

What's changed?

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

yuluo-yx
yuluo-yx previously approved these changes Aug 24, 2024
Copy link
Member

@yuluo-yx yuluo-yx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @Carpe-Wang

@tomsun28
Copy link
Member

👍👍hi, how we use in monitor template yml script, can you give an example?
eg:

    protocol: http
    http:
      host: ^_^host^_^
      port: ^_^port^_^
      url: ^_^base_path^_^/metrics/jvm.threads.states
      method: GET
      ssl: ^_^ssl^_^
      authorization:
        type: Basic Auth
        basicAuthUsername: ^_^username^_^
        basicAuthPassword: ^_^password^_^
      parseType: jsonPath
      parseScript: '$.availableTags[?(@.tag == "state")].values[*]'

@tomsun28
Copy link
Member

hi, there has some error when mvn build https://github.com/apache/hertzbeat/actions/runs/10579722064/job/29312860776?pr=2593

@tomsun28
Copy link
Member

tomsun28 commented Mar 7, 2026

sorry i need to close it.

@tomsun28 tomsun28 closed this Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants