欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 4509|回复: 2
收起左侧

test

[复制链接]
oppo 发表于 2017-3-22 18:41 | 显示全部楼层 |阅读模式
本帖最后由 oppo 于 2017-3-22 18:49 编辑

[gv=dot]digraph idp_modules{
rankdir = TB;
fontname = "Microsoft YaHei";
fontsize = 12;
  
node [ fontname = "Microsoft YaHei", fontsize = 12, shape = "record" ];
edge [ fontname = "Microsoft YaHei", fontsize = 12 ];
  
     subgraph cluster_sl{
         label="IDP支持层";
         bgcolor="mintcream";
         node [shape="Mrecord", color="skyblue", style="filled"];
         network_mgr [label="网络管理测试啊测试啊"];
         log_mgr [label="日志管理器"];
         module_mgr [label="模块管理器"];
         conf_mgr [label="配置管理器"];
         db_mgr [label="数据库管理器"];
     };
  
     subgraph cluster_md{
         label="可插拔模块集";
         bgcolor="lightcyan";
         node [color="chartreuse2", style="filled"];
         mod_dev [label="开发支持模块"];
         mod_dm [label="数据建模模块"];
         mod_dp [label="部署发布模块"];
     };
  
mod_dp -> mod_dev [label="依赖..."];
mod_dp -> mod_dm [label="依赖..."];
mod_dp -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
mod_dev -> mod_dm [label="依赖..."];
mod_dev -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
mod_dm -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
}[/gv]
 楼主| oppo 发表于 2017-3-22 18:51 | 显示全部楼层
[tex=gv,dot]digraph zabbix_alert {
        rank="same";
        rankdir = TB;
        fontname = "Courier New, SimSun";
        fontsize = "11";
        node [shape=Mrecord,fontname="MONACO,Courier New,SimSun"];
        edge [fontname="Courier New,SimSun", fontsize="9"];

        reduce[shape="component", label="reduce.py"];
        alert[shape="component", label="alert.py"];
        cmdb[shape="cylinder", label="cmdbApi", style="filled", fillcolor="skyblue"];
       
        msg [shape="none", label="{'date':'{DATE}', 'time':'{TIME}', \n'itemid':'{ITEM.ID}',\n'actionid':'{ACTION.ID}'...",fontsize=8];
        msg -> reduce;
        reduce-> alerttype[label="调用"];
        db[shape="note", label="json_file_db"];
       
        alerttype[color="skyblue", shape="plaintext", label=<<table>
                <tr><td bgcolor="skyblue">alerttype</td></tr>
                <tr><td>app</td></tr>
                <tr><td>disk</td></tr>
                <tr><td>url</td></tr>
                <tr><td>default</td></tr>
                <tr><td>...</td></tr></table>>
        ];
        reduce -> db[label="根据alerttype定义\n的规则生成合并数据\n(json文件)"];
        cmdb->alert[label="提供报警联系人接口"];
       
        subgraph cluster_cron {
                label="cron控制定时扫描报警数据";
                cron[shape="component", label="cron.sh"];
                new[shape="folder",label="new/",fillcolor="yellow", style="filled"];
                queue[shape="folder",label="queue/"];
                old[shape="folder",label="old/"];
                failed[shape="folder",label="failed/"];
                new->queue[label="mv到发送队列"];
                queue -> old[label="完成"];
                cron->new[label="扫描"];
                queue -> failed[label="发送失败"];
                alert -> queue[label="发送"];
        }
        new_fold[shape="folder",label="new/", fillcolor="yellow", style="filled"];
        db -> new_fold[label="报警数据存储"];
       
        influx[shape="cylinder", label="InfluxDB", style="filled", fillcolor="skyblue"];
        alert->influx[label="报警统计"];
        grafana[label="Grafana", style="filled", fillcolor="skyblue"];
        influx->grafana[label="展示"];
}[/tex]
回复 打印

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-4 00:34 , Processed in 0.049527 second(s), 13 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表