You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by li...@apache.org on 2019/02/24 08:58:56 UTC
[incubator-skywalking-data-collect-protocol] branch master updated:
Add CLR metrics data protocol (#3)
This is an automated email from the ASF dual-hosted git repository.
liuhaoyangzz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-data-collect-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new b3739e6 Add CLR metrics data protocol (#3)
b3739e6 is described below
commit b3739e61889167a96873c71ad421dffd7cdb08ce
Author: Lemon <li...@hotmail.com>
AuthorDate: Sun Feb 24 16:58:52 2019 +0800
Add CLR metrics data protocol (#3)
---
common/CLR.proto | 48 +++++++++++++++++++++++++++++++++++++++
language-agent-v2/CLRMetric.proto | 36 +++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
diff --git a/common/CLR.proto b/common/CLR.proto
new file mode 100644
index 0000000..64489cc
--- /dev/null
+++ b/common/CLR.proto
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+syntax = "proto3";
+
+option java_multiple_files = true;
+option java_package = "org.apache.skywalking.apm.network.language.agent";
+option csharp_namespace = "SkyWalking.NetworkProtocol";
+
+message CLRMetric {
+ int64 time = 1;
+ CPU cpu = 2;
+ GC gc = 3;
+ Thread thread = 4;
+}
+
+message CPU {
+ double usagePercent = 1;
+}
+
+message GC {
+ int64 Gen0CollectCount = 1;
+ int64 Gen1CollectCount = 2;
+ int64 Gen2CollectCount = 3;
+ int64 HeapMemory = 4;
+}
+
+message Thread {
+ int32 AvailableCompletionPortThreads = 1;
+ int32 AvailableWorkerThreads = 2;
+ int32 MaxCompletionPortThreads = 1;
+ int32 MaxWorkerThreads = 2;
+}
\ No newline at end of file
diff --git a/language-agent-v2/CLRMetric.proto b/language-agent-v2/CLRMetric.proto
new file mode 100644
index 0000000..da023b6
--- /dev/null
+++ b/language-agent-v2/CLRMetric.proto
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+syntax = "proto3";
+
+option java_multiple_files = true;
+option java_package = "org.apache.skywalking.apm.network.language.agent.v2";
+option csharp_namespace = "SkyWalking.NetworkProtocol";
+
+import "common/common.proto";
+import "common/CLR.proto";
+
+service CLRMetricReportService {
+ rpc collect (CLRMetricCollection) returns (Commands) {
+ }
+}
+
+message CLRMetricCollection {
+ repeated CLRMetric metrics = 1;
+ int32 serviceInstanceId = 2;
+}
\ No newline at end of file