axway-api-management-plus / apimanager-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWExport API-Management metrics into Prometheus and visualize them for instance in Grafana dashboards
License: Apache License 2.0
Export API-Management metrics into Prometheus and visualize them for instance in Grafana dashboards
License: Apache License 2.0
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
Prometheus Exporter version
API-Gateway Version
V 1.0.2
Question
Exception while reading logs from ANM.
Following Error occures in prometheus exporter
1662707979173 ERROR [timer: timer-1] [request-id: 0ca91e40-9b1e-4ac2-baf1-5a62ce17bc9f] Get metrics groups (axway-api-management.2) Error message: {"code":"ECONNRESET"}
1662707979174 WARN [timer: timer-1] [request-id: 0ca91e40-9b1e-4ac2-baf1-5a62ce17bc9f] Get metrics groups (axway-api-management.2) No metrics groups found for gateway instance: traffic-7497dfc548-92ff4. Perhaps API-Gateway instance is offline.
Following error occurs on ANM
IO error communicating with remote
java.io.IOException: loopback: disconnectedpipe disconnected during read
at com.vordel.dwe.http.ClientTransaction.readResponse(Native Method)
at com.vordel.circuit.net.ProtocolDelegateProcessor.invoke(ProtocolDelegateProcessor.java:126)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:149)
at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:41)
at com.vordel.circuit.InvocationEngine.recordCircuitInvocation(InvocationEngine.java:279)
at com.vordel.circuit.InvocationEngine.processMessage(InvocationEngine.java:241)
at com.vordel.circuit.SyntheticCircuitChainProcessor.invoke(SyntheticCircuitChainProcessor.java:65)
at com.vordel.dwe.http.HTTPPlugin.processRequest(HTTPPlugin.java:416)
at com.vordel.dwe.http.HTTPPlugin.invokeDispose(HTTPPlugin.java:442)
at com.vordel.dwe.http.HTTPPlugin.invoke(HTTPPlugin.java:135)
What I've tried so far
Make sure Propetheus exporter is connecting to ANM.
Used Admin user to provide all permissiones.
Additional information
Using container 2802 release for Axway API Gateway.
Version 7.7.20220228
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.