alertmanager/cli
Binh Le 9b127147bd [amtool] - Add a new `silence import` command (#1082)
* Add a new `silence import` command to amtool

This command read silences data from a query JSON output and import to
alertmanager. It allows `amtool` to be used as a backup/restore tool for
silences, i.e. #1000

Backup / export:

```
amtool silence -o json > silences.json
```

Restore / import:

```
amtool silence import silences.json
```

* Add a WaitGroup barrier

Move error channel reading to a goroutine to prevent deadlock and thus
add a WaitGroup to synchronize.
2017-12-07 13:12:00 +01:00
..
format Minor code cleanups 2017-11-01 23:08:34 +01:00
testdata amtool check-config (#978) 2017-09-07 10:58:58 +02:00
alert.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
check_config.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
check_config_test.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
config.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
root.go Update config file location in flag usage text (#895) 2017-07-05 13:09:03 +02:00
silence.go [amtool] - Add a new `silence import` command (#1082) 2017-12-07 13:12:00 +01:00
silence_add.go [amtool] - Add a new `silence import` command (#1082) 2017-12-07 13:12:00 +01:00
silence_expire.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
silence_import.go [amtool] - Add a new `silence import` command (#1082) 2017-12-07 13:12:00 +01:00
silence_query.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
utils.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00