Git Product home page Git Product logo

apimanager-prometheus-exporter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

apimanager-prometheus-exporter's Issues

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

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

Issue while extracting logs from ANM (Version 7.7.20220228)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.