# Dummy Python API
This is a dummy Python REST API that has all HTTP methods available and randomly generates error.
The main propose of this application is to have some inputs for Prometheus
## Testing
This repository has a script `test-api.sh` that make many requests to the API.
## Prometheus
The API expose its metrics in `/metrics`.
### Relevant metrics
- `request_latency_seconds_bucket`: count the number of requests answered less than the time specified by the bucket. Example: `request_latency_seconds_bucket{endpoint="/",le="0.25",method="OPTIONS"} 2.0`, it means that the application received 2 requests and their response were generated less than 0.25 second.
- `request_count_total`: count the number of requests in an endpoint. Example: `request_count_total{endpoint="/",http_status="404",method="POST"} 3.0`, it means that the application received 3 requests and answered with 404 for the endpoint "/". Its expects because the application is not serving "/".
- `request_latency_seconds_sum`: the sum of time waste by this endpoint and method. Example: `request_latency_seconds_sum{endpoint="/",method="DELETE"} 0.00010514259338378906`, it means that the DELETE method for the endpoint "/" is not an issue, as it was not requested too much. Considering the app is not serving "/", when running in production, the reverse proxy (like nginx) could block requests on "/", avoiding the requests to reach the application.
普通网友
- 粉丝: 3469
- 资源: 505
最新资源
- MP3设计原理图与PCB
- 双驱双向潜伏式AGV小车3D图纸和工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- 基于java+springboot+mysql+微信小程序的员工日志管理信息系统 源码+数据库+论文(高分毕业设计).zip
- 720n op打印服务器插件三个用
- 双向变距机构3D图纸和工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- HuggingFace tokenizer基本使用及示例展示
- 基于扰动观测器的永磁同步电机(PMSM)模型预测控制(MPC)仿真,速度外环基于模型预测控制、电流内环基于无差拿控制搭建,控制效果理想,模块程序设计通俗易通,送参考文献,方便学习理解
- 计算机二级考试全攻略(含试题)
- AIGC基础知识及应用畅想分享
- 《四维虚拟导管:二尖瓣主动脉疾病主动脉内血流动力学的无创评估》matlab代码.rar
- AM的平方律调制解调方案 matlab代码.rar
- AHRS(航姿算法)的Matlab程序.rar
- DeepRLPID,利用深度强化学习算法对飞机俯仰PID控制器进行自适应调整Matlab代码.rar
- HVAC_RL,暖通空调控制器的强化学习Matlab实现.rar
- AUV MatLab的强化学习QLearning自调谐PID控制器.rar
- matalb求解化工中热量传递的一个实际问题.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈