Commit 080d85d8 authored by quqingtao's avatar quqingtao

<dev>

1. something
parent be982b36
...@@ -11,9 +11,11 @@ import java.util.Map; ...@@ -11,9 +11,11 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
/** /**
* @author DeleMing * @author
* 拓扑
* 验证只有appsystem、hostname、ip维度的告警机器
*/ */
public class QQTMockZorkMetricHostBeatSimpleCycleAppSystem { public class QQTHostAlarm11 {
private static String topic = "dwd_all_metric"; private static String topic = "dwd_all_metric";
private static String brokerAddr = "node1:9092,node2:9092,node3:9092"; private static String brokerAddr = "node1:9092,node2:9092,node3:9092";
// private static String brokerAddr = "yf170:9092,yf171:9092,yf172:9092"; // private static String brokerAddr = "yf170:9092,yf171:9092,yf172:9092";
...@@ -42,7 +44,7 @@ public class QQTMockZorkMetricHostBeatSimpleCycleAppSystem { ...@@ -42,7 +44,7 @@ public class QQTMockZorkMetricHostBeatSimpleCycleAppSystem {
//Dimensions //Dimensions
Map<String, String> dimensions = new HashMap<>(); Map<String, String> dimensions = new HashMap<>();
dimensions.put("appsystem", "dev_test"); dimensions.put("appsystem", "alarm");
// dimensions.put("clustername", "jichujiankong"); // dimensions.put("clustername", "jichujiankong");
// dimensions.put("appprogramname", "linuxmokuai"); // dimensions.put("appprogramname", "linuxmokuai");
dimensions.put("hostname", "host-11"); dimensions.put("hostname", "host-11");
......
...@@ -11,7 +11,7 @@ import java.util.Map; ...@@ -11,7 +11,7 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
/** /**
* @author DeleMing * @author 验证恢复
*/ */
public class QQTMockZorkMetricHostBeatSimpleCyle { public class QQTMockZorkMetricHostBeatSimpleCyle {
private static String topic = "dwd_all_metric"; private static String topic = "dwd_all_metric";
...@@ -43,8 +43,10 @@ public class QQTMockZorkMetricHostBeatSimpleCyle { ...@@ -43,8 +43,10 @@ public class QQTMockZorkMetricHostBeatSimpleCyle {
//Dimensions //Dimensions
Map<String, String> dimensions = new HashMap<>(); Map<String, String> dimensions = new HashMap<>();
dimensions.put("appsystem", "dev_test"); dimensions.put("appsystem", "dev_test");
dimensions.put("clustername", "jichujiankong"); dimensions.put("clustername", "基础监控");
dimensions.put("appprogramname", "linuxmokuai"); // dimensions.put("clustername", "jichujiankong");
// dimensions.put("appprogramname", "linuxmokuai");
dimensions.put("appprogramname", "linux模块");
dimensions.put("hostname", "host-11"); dimensions.put("hostname", "host-11");
dimensions.put("ip", "192.168.13.11"); dimensions.put("ip", "192.168.13.11");
...@@ -52,7 +54,7 @@ public class QQTMockZorkMetricHostBeatSimpleCyle { ...@@ -52,7 +54,7 @@ public class QQTMockZorkMetricHostBeatSimpleCyle {
//MetricItem //MetricItem
Map<String, Double> metrics = new HashMap<>(); Map<String, Double> metrics = new HashMap<>();
metrics.put("status", 0d); metrics.put("status", 1d);
//timestamp //timestamp
long timestamp = System.currentTimeMillis(); long timestamp = System.currentTimeMillis();
String timestampString = String.valueOf(timestamp); String timestampString = String.valueOf(timestamp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment