Skip to content

Commit c900089

Browse files
authored
Merge pull request #626 from ginglis13/emit-metrics
add metrics config to remote snapshotter rootfs
2 parents d7af2db + 2668842 commit c900089

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)