Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1059956
  • 博文数量: 186
  • 博客积分: 4939
  • 博客等级: 上校
  • 技术积分: 2075
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-08 17:15
文章分类

全部博文(186)

文章存档

2018年(1)

2017年(3)

2016年(11)

2015年(42)

2014年(21)

2013年(9)

2012年(18)

2011年(46)

2010年(35)

发布时间:2017-01-17 21:36:06

  grafana的官方文档写的太简单,要自动化创建一个metrics,经过反复测试,下面一个例子就可以了。{  "Dashboard": {    "title": "gorouter",    "editable": true,    "rows": [.........【阅读全文】

阅读(7236) | 评论(0) | 转发(0)

发布时间:2017-01-17 21:27:50

    很久不写了,发一个最近的ruby多线程例子,没有线程同步问题,比较简单。require 'json'require 'rest-client'require 'thread'$contenct=[]def get_metricsget_json($content).select do |item|if /^opents.........【阅读全文】

阅读(3814) | 评论(0) | 转发(0)

发布时间:2016-08-13 19:16:19

{ "api.xxx.cn": [{"address": "10.0.16.19:9022","ttl": 0}]}route = JSON.parse(result)temp_route = {}route.each do |host, ip_metas|temp_route[host] = ip_metas.map { |ip_meta| ip_m.........【阅读全文】

阅读(3672) | 评论(0) | 转发(0)

发布时间:2016-07-31 19:03:36

#!/usr/bin/env python# -*- coding: utf-8 -*-# # Date: Jul 25,2016'''### Purpose ####Correlating the reservations you currently have active with your running instances is a manual, time-consuming, and error .........【阅读全文】

阅读(1770) | 评论(0) | 转发(0)

发布时间:2015-10-13 20:36:03

题目在这里 http://bbs.chinaunix.net/thread-4189187-1-1.html,bbs有问题,我的几个回帖都被删了.

#!......【阅读全文】

阅读(1484) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册