Skip to content

Commit 2668842

Browse files
committed
add metrics config to remote snapshotter rootfs
configure socat to forward requests to inVm metrics server being hosted by remote snapshotter, and configure remote snapshotter to emit metrics Signed-off-by: Gavin Inglis <giinglis@amazon.com>
1 parent c9c6721 commit 2668842

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
metrics_address = "localhost:8234"
2+
no_prometheus = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/systemd/system/metrics-socat.service
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
# not use this file except in compliance with the License. A copy of the
5+
# License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is distributed
10+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
# express or implied. See the License for the specific language governing
12+
# permissions and limitations under the License.
13+
[Unit]
14+
Description=Metrics Socat
15+
StartLimitIntervalSec=2
16+
After=stargz-snapshotter.service
17+
Requires=stargz-snapshotter.service
18+
SuccessAction=reboot
19+
20+
[Service]
21+
Type=simple
22+
ExecStart=socat VSOCK-LISTEN:10001,reuseaddr,fork TCP:localhost:8234

0 commit comments

Comments
 (0)