Skip to content
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

Scraping fails if API name contains special character (for ex. &) #27

Open
sandormedzi opened this issue May 23, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@sandormedzi
Copy link

sandormedzi commented May 23, 2023

Prometheus Exporter version
1.0.2

API-Gateway Version
7.7.20220830

Actual behavior

In sandbox where there are just a few APIs, the exporter runs as intended, but on other plattform, where we have much more APIs, if the API name contains an "&" character, the following error occurs (and then the container shuts down):

1684832542297 ERROR [timer: timer-1] [request-id: **] Get service metrics (axway-api-management.4) Error getting API-Gateway metrics: 'timeline?timeline=10m&metricGroupType=Service&name=removed & removed&metricType=successes&metricType=failures&metricType=exceptions&metricType=numMessages&metricType=processingTimeAvg' from Admin-Node-Manager. Request sent to: ******. Response-Code: 403
1684832542301 ERROR [timer: timer-1] [request-id: **] Shutdown (power.1) [object Object] (Error-Code: 99)

Even if we rename the API from "something & something" to "something and something" the exporter still fails, as

Expected behavior
API name should not cause errors (I understand that the & sign is very special here, but even if we rename,

Test case sample
scrape any GW where there are APIs with "&" in name

@sandormedzi sandormedzi added the bug Something isn't working label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant