python
Jiang_James_L
To be a better man
展开
-
python 批量获取和更新DC/OS Marathon Applications
1 批量获取DC/OS 租户下的applications调用http://<dcos.master>/service/<tenant>/v2/groups并解析。def getMarathonApplications(cls, jsonInfos, tenant, path): ''' :param jsonInfos: /service/<ten...原创 2019-08-06 20:10:21 · 301 阅读 · 0 评论 -
python获取Prometheus监控数据
1 获取Prometheus target数据调用http://<prometheus.address>/api/v1/targets并解析。def getTargetsStatus(address): url = address + '/api/v1/targets' response = requests.request('GET', url) if ...原创 2019-08-06 17:21:06 · 8811 阅读 · 2 评论