File: run_node_exporter.sh.tpl

package info (click to toggle)
tiup 1.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,384 kB
  • sloc: sh: 1,988; makefile: 138; sql: 16
file content (30 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e

# WARNING: This file was auto-generated. Do not edit!
#          All your edit might be overwritten!
DEPLOY_DIR={{.DeployDir}}
cd "${DEPLOY_DIR}" || exit 1

exec > >(tee -i -a "{{.LogDir}}/node_exporter.log")
exec 2>&1

EXPORTER_BIN=bin/node_exporter/node_exporter
if [ ! -f $EXPORTER_BIN ]; then
  EXPORTER_BIN=bin/node_exporter
fi

{{- if .NumaNode}}
exec numactl --cpunodebind={{.NumaNode}} --membind={{.NumaNode}} $EXPORTER_BIN \
{{- else}}
exec $EXPORTER_BIN \
{{- end}}
    --web.listen-address=":{{.Port}}" \
    --collector.tcpstat \
    --collector.mountstats \
    --collector.meminfo_numa \
    --collector.buddyinfo \
    --collector.vmstat.fields="^.*" \
    --log.level="info"
    #--collector.systemd \
    #--collector.interrupts \