Prometheus api 查询监控数据导出 CSV&Excel
Prometheus api 获取监控数据导出 CSV1、 发送给企业微信机器人# upload_file 是为了生成 media_id, 供消息使用def upload_file(file_path, wx_upload_url): file_name = file_path.split("/")[-1] with open(file_path, 'rb') as f: length = os.path.getsize(file_path) .
原创
2021-04-09 17:56:27 ·
5627 阅读 ·
5 评论