Skip to content

Commit 87cab06

Browse files
committed
update header
1 parent c544bc6 commit 87cab06

File tree

8 files changed

+137
-33
lines changed

8 files changed

+137
-33
lines changed

CODE_OF_CONDUCT.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
<!--
2-
- Licensed to the Apache Software Foundation (ASF) under one
3-
- or more contributor license agreements. See the NOTICE file
4-
- distributed with this work for additional information
5-
- regarding copyright ownership. The ASF licenses this file
6-
- to you under the Apache License, Version 2.0 (the
7-
- "License"); you may not use this file except in compliance
8-
- with the License. You may obtain a copy of the License at
9-
-
10-
- http://www.apache.org/licenses/LICENSE-2.0
11-
-
12-
- Unless required by applicable law or agreed to in writing,
13-
- software distributed under the License is distributed on an
14-
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
- KIND, either express or implied. See the License for the
16-
- specific language governing permissions and limitations
17-
- under the License.
18-
-->
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
1919

2020
# Contributor Covenant Code of Conduct
2121

@@ -92,4 +92,4 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
9292
[homepage]: https://www.contributor-covenant.org
9393

9494
For answers to common questions about this code of conduct, see
95-
https://www.contributor-covenant.org/faq
95+
https://www.contributor-covenant.org/faq

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
# Monitoring Sidecar for ResLens
221

322
This repository contains the **Monitoring Sidecar** for the ResLens project. The sidecar is designed to monitor the parent process running on the host using tools like **Pyroscope** and **Process Exporter**. It runs as a Docker container and collects profiling and process-level metrics for real-time performance monitoring.

docker-compose.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
# Licensed under the Apache License, Version 2.0 (the "License");
2-
# you may not use this file except in compliance with the License.
3-
# You may obtain a copy of the License at
41
#
5-
# http://www.apache.org/licenses/LICENSE-2.0
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
618
#
7-
# Unless required by applicable law or agreed to in writing, software
8-
# distributed under the License is distributed on an "AS IS" BASIS,
9-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10-
# See the License for the specific language governing permissions and
11-
# limitations under the License.
1219

1320
version: '3.3'
1421

@@ -57,4 +64,4 @@ services:
5764
- "9256:9256"
5865
volumes:
5966
- /proc:/host/proc
60-
- ./process-exporter:/config
67+
- ./process-exporter:/config

middleware/.dockerignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
node_modules
221
npm-debug.log
322
.DS_Store
4-
cron
23+
cron

middleware/tmp/dummy_analysis.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
The CPU profile reveals significant contention around condition variables and system calls, indicating a high likelihood of thread synchronization bottlenecks and potentially inefficient I/O operations.
221

322
**1. Main Performance Bottlenecks:**

middleware/utils/pprofConverter.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
const { exec } = require('child_process');
221
const util = require('util');
322

@@ -140,4 +159,4 @@ function toMarkdown(data) {
140159

141160
module.exports = {
142161
convertPprofToMarkdown
143-
};
162+
};

middleware/utils/profileAnalyzer.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
const { GoogleGenerativeAI } = require("@google/generative-ai");
221
const { getEnv } = require("./envParser");
322

@@ -51,4 +70,4 @@ Please provide a concise, actionable analysis based on this profile data.
5170

5271
module.exports = {
5372
analyzeProfileContent
54-
};
73+
};

process-exporter/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#
12
# Licensed under the Apache License, Version 2.0 (the "License");
23
# you may not use this file except in compliance with the License.
34
# You may obtain a copy of the License at
@@ -9,8 +10,9 @@
910
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1011
# See the License for the specific language governing permissions and
1112
# limitations under the License.
13+
#
1214

1315
process_names:
1416
- name: "kv_service"
1517
cmdline:
16-
- "kv_service"
18+
- "kv_service"

0 commit comments

Comments
 (0)