Comments (1)
Prometheus metrics are exposed now via /swagger-stats/metrics
API.
Example:
$ curl http://<your app host:port>/swagger-stats/metrics
# HELP api_all_request_total The total number of all API requests received
# TYPE api_all_request_total counter
api_all_request_total 88715
# HELP api_all_success_total The total number of all API requests with success response
# TYPE api_all_success_total counter
api_all_success_total 49051
. . . . .
The following metrics are provided:
Name | Type | Help |
---|---|---|
api_all_request_total | counter | The total number of all API requests received |
api_all_success_total | counter | The total number of all API requests with success response |
api_all_errors_total | counter | The total number of all API requests with error response |
api_all_client_error_total | counter | The total number of all API requests with client error response |
api_all_server_error_total | counter | The total number of all API requests with server error response |
api_all_request_in_processing_total | gauge | The total number of all API requests currently in processing (no response yet) |
nodejs_process_memory_rss_bytes | gauge | Node.js process resident memory (RSS) bytes |
nodejs_process_memory_heap_total_bytes | gauge | Node.js process memory heapTotal bytes |
nodejs_process_memory_heap_used_bytes | gauge | Node.js process memory heapUsed bytes |
nodejs_process_memory_external_bytes | gauge | Node.js process memory external bytes |
nodejs_process_cpu_usage_percentage | gauge | Node.js process CPU usage percentage |
api_request_total | counter | The total number of all API requests |
api_request_duration_milliseconds | histogram | API requests duration |
api_request_size_bytes | histogram | API requests size |
api_response_size_bytes | histogram | API response size |
Added Grafana dashboard, see dashboards/prometheus
from swagger-stats.
Related Issues (20)
- unit tests fail at [email protected] HOT 4
- How to make the data persist? HOT 1
- URL Normalization and 404 count consolidation by config option without requiring swagger apiSpec HOT 1
- how to customize metrics
- problem
- feat
- Hope to support a new feature
- DEBUG env is being overridden by `lib/swsElasticEmitter.js`
- 0.99.7 HOT 1
- where is the file "swagger.json" ? HOT 1
- Error on routes with wildcards
- Support prom-client 15
- Issue with Basic Auth when connecting the Endpoint to Grafana cloud HOT 2
- ReferenceError: that is not defined
- How to implement it in a production environment? HOT 1
- Error in tests when updating to 0.99.7
- Native Fastify plugin
- Issue in authentication in case of a multi-instance environment
- Issues with Requests to the root route (/)
- ReferenceError: that is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-stats.