We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Result:
2024-12-18T03:55:00.342027Z DEBUG source{component_kind="source" component_id=src-metrics-prod-proxy component_type=prometheus_scrape}:http: vector::internal_events::http_client: Sending HTTP request. uri=https://myprometheus/federate?match=%7Bjob%3D%something%22%7D method=GET version=HTTP/1.1 headers={"accept": "text/plain", "user-agent": "Vector/0.43.1 (x86_64-unknown-linux-musl e30bf1f 2024-12-10 16:14:47.175528383)", "accept-encoding": "identity"} body=[empty]
Sample config: src-metrics-prod-proxy: endpoints: - "https://myprometheus/federate" honor_labels: true scrape_interval_secs: 60 scrape_timeout_secs: 45 query: match: - '{job="something"}' tls: verify_certificate: false verify_hostname: false type: prometheus_scrape
vector 0.43.1 (x86_64-unknown-linux-musl e30bf1f 2024-12-10 16:14:47.175528383)
No response
The text was updated successfully, but these errors were encountered:
HI @valleedelisle !
I think I'm missing the issue here. Could you describe the expected behavior?
Sorry, something went wrong.
Sorry, I should have clarified this.
Prometheus is expecting a url like this: https://myprometheus/federate?match[]=%7Bjob%3D%something%22%7D
https://myprometheus/federate?match[]=%7Bjob%3D%something%22%7D
As opposed to this: https://myprometheus/federate?match=%7Bjob%3D%something%22%7D
https://myprometheus/federate?match=%7Bjob%3D%something%22%7D
Ah I see. It's curious that this issue hasn't been reported before. That match feature has been there for quite a while 🤔
match
I tried by modifying your source config to include [] after match, something like this and it's working after that
Sample config: src-metrics-prod-proxy: endpoints: - "https://myprometheus/federate" honor_labels: true scrape_interval_secs: 60 scrape_timeout_secs: 45 query: match[]: - '{job="something"}' tls: verify_certificate: false verify_hostname: false type: prometheus_scrape
But if we want to make it easier, I created a PR to replace match key with match[] at source while building url
match[]
Successfully merging a pull request may close this issue.
A note for the community
Problem
Result:
Configuration
Version
vector 0.43.1 (x86_64-unknown-linux-musl e30bf1f 2024-12-10 16:14:47.175528383)
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: