forked from grafana-cold-storage/metrictank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync-configs.sh
More file actions
executable file
·20 lines (16 loc) · 953 Bytes
/
Copy pathsync-configs.sh
File metadata and controls
executable file
·20 lines (16 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Find the directory we exist within
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# if we execute from root dir of project, things are easier to reference later
cd ${DIR}/..
echo "first make sure metrictank-sample.ini is up to date. its values should match the defaults used by metrictank. and comments should match the descriptions provided by metrictank help menus"
echo "now we will run vimdiff to manually synchronize updates from sample config to other configs:"
echo "try to make every config resemble the sample config as closely as possible, while retaining the customizations that makes each config unique"
echo "hit a key when you're ready...."
read
for cfg in $(find . -name 'metrictank*.ini' | grep -v '\./metrictank-sample.ini'); do
vimdiff metrictank-sample.ini $cfg
done
echo "updating docs/config.md"
./scripts/config-to-doc.sh > docs/config.md
# metrics2docs .> docs/metrics.md this doesn't work very well yet