-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
prometheus_scrape source's query doesn't add the [] to mapping list #22049
Comments
HI @valleedelisle ! I think I'm missing the issue here. Could you describe the expected behavior? |
Sorry, I should have clarified this. Prometheus is expecting a url like this: As opposed to this: |
Ah I see. It's curious that this issue hasn't been reported before. That |
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 |
Looking at our example:
...this looks like a configuration issue, replacing this:
with this:
should fix it. |
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: