consul-template debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac-c02nx126g5rp:consul-poc clstokes$ cat consul-template/ingest.ctmpl | |
{{range $key, $pairs := tree "databases" | byKey}} | |
{{ $key }}:{{with $url := printf "databases/%s/url" $key }} | |
url: {{ key $url }} | |
#urlPath: {{ $url }} <- for troubleshooting purposes | |
{{end}}{{end}} | |
mac-c02nx126g5rp:consul-poc clstokes$ ~/cc/other/consul-template/bin/consul-template -consul 127.0.0.1:8500 -template "consul-template/ingest.ctmpl:build/out" -dry -once -log-level debug | |
2015/03/09 10:11:26 [INFO] (runner) creating new runner (dry: true, once: true) | |
2015/03/09 10:11:26 [INFO] (runner) creating consul/api client | |
2015/03/09 10:11:26 [DEBUG] (runner) setting address to 127.0.0.1:8500 | |
2015/03/09 10:11:26 [DEBUG] (runner) setting basic auth | |
2015/03/09 10:11:26 [INFO] (runner) creating Watcher | |
2015/03/09 10:11:26 [INFO] (runner) starting | |
2015/03/09 10:11:26 [DEBUG] (runner) running initial templates | |
2015/03/09 10:11:26 [INFO] (runner) running | |
2015/03/09 10:11:26 [DEBUG] (runner) checking template consul-template/ingest.ctmpl | |
2015/03/09 10:11:26 [DEBUG] (brain) does not have data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [INFO] (runner) was not watching 1 dependencies | |
2015/03/09 10:11:26 [INFO] (watcher) adding "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [DEBUG] (watcher) "storeKeyPrefix(databases)" starting | |
2015/03/09 10:11:26 [INFO] (runner) diffing and updating dependencies | |
2015/03/09 10:11:26 [INFO] (runner) watching 1 dependencies | |
2015/03/09 10:11:26 [DEBUG] (view) "storeKeyPrefix(databases)" starting fetch | |
2015/03/09 10:11:26 [DEBUG] ("storeKeyPrefix(databases)") querying Consul with &{Datacenter: AllowStale:false RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token:} | |
2015/03/09 10:11:26 [DEBUG] ("storeKeyPrefix(databases)") Consul returned 6 key pairs | |
2015/03/09 10:11:26 [INFO] (view) "storeKeyPrefix(databases)" received data from consul | |
2015/03/09 10:11:26 [DEBUG] (runner) receiving dependency "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [INFO] (brain) remembering "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [INFO] (runner) running | |
2015/03/09 10:11:26 [DEBUG] (runner) checking template consul-template/ingest.ctmpl | |
2015/03/09 10:11:26 [INFO] (brain) recalling data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [DEBUG] (brain) does not have data for "key(databases/backup/url)" | |
2015/03/09 10:11:26 [DEBUG] (brain) does not have data for "key(databases/main/url)" | |
2015/03/09 10:11:26 [INFO] (runner) was not watching 2 dependencies | |
2015/03/09 10:11:26 [INFO] (watcher) adding "key(databases/main/url)" | |
2015/03/09 10:11:26 [DEBUG] (watcher) "key(databases/main/url)" starting | |
2015/03/09 10:11:26 [INFO] (watcher) adding "key(databases/backup/url)" | |
2015/03/09 10:11:26 [DEBUG] (watcher) "key(databases/backup/url)" starting | |
2015/03/09 10:11:26 [INFO] (runner) diffing and updating dependencies | |
2015/03/09 10:11:26 [DEBUG] (runner) "storeKeyPrefix(databases)" is still needed | |
2015/03/09 10:11:26 [INFO] (runner) watching 3 dependencies | |
2015/03/09 10:11:26 [DEBUG] (view) "key(databases/main/url)" starting fetch | |
2015/03/09 10:11:26 [DEBUG] ("key(databases/main/url)") querying consul with &{Datacenter: AllowStale:false RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token:} | |
2015/03/09 10:11:26 [DEBUG] (view) "key(databases/backup/url)" starting fetch | |
2015/03/09 10:11:26 [DEBUG] ("key(databases/backup/url)") querying consul with &{Datacenter: AllowStale:false RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token:} | |
2015/03/09 10:11:26 [DEBUG] ("key(databases/main/url)") Consul returned urlMAIN | |
2015/03/09 10:11:26 [INFO] (view) "key(databases/main/url)" received data from consul | |
2015/03/09 10:11:26 [DEBUG] (runner) receiving dependency "key(databases/main/url)" | |
2015/03/09 10:11:26 [INFO] (brain) remembering "key(databases/main/url)" | |
2015/03/09 10:11:26 [INFO] (runner) running | |
2015/03/09 10:11:26 [DEBUG] (runner) checking template consul-template/ingest.ctmpl | |
2015/03/09 10:11:26 [INFO] (brain) recalling data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [INFO] (brain) recalling data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [DEBUG] (runner) checking ctemplate &{Source:consul-template/ingest.ctmpl Destination:build/out Command:} | |
> build/out | |
2015/03/09 10:11:26 [DEBUG] (runner) wouldRender: true, didRender: true | |
2015/03/09 10:11:26 [INFO] (runner) diffing and updating dependencies | |
2015/03/09 10:11:26 [DEBUG] (runner) "storeKeyPrefix(databases)" is still needed | |
2015/03/09 10:11:26 [DEBUG] (runner) "key(databases/backup/url)" is no longer needed | |
2015/03/09 10:11:26 [INFO] (watcher) removing "key(databases/backup/url)" | |
2015/03/09 10:11:26 [DEBUG] (watcher) actually removing "key(databases/backup/url)" | |
2015/03/09 10:11:26 [INFO] (brain) forgetting "key(databases/backup/url)" | |
2015/03/09 10:11:26 [DEBUG] (runner) "key(databases/main/url)" is no longer needed | |
2015/03/09 10:11:26 [INFO] (watcher) removing "key(databases/main/url)" | |
2015/03/09 10:11:26 [DEBUG] (watcher) actually removing "key(databases/main/url)" | |
2015/03/09 10:11:26 [INFO] (brain) forgetting "key(databases/main/url)" | |
2015/03/09 10:11:26 [INFO] (runner) watching 1 dependencies | |
2015/03/09 10:11:26 [INFO] (runner) once mode and all templates rendered | |
2015/03/09 10:11:26 [INFO] (runner) stopping | |
2015/03/09 10:11:26 [INFO] (watcher) stopping all views | |
2015/03/09 10:11:26 [DEBUG] (watcher) stopping "storeKeyPrefix(databases)" | |
2015/03/09 10:11:26 [DEBUG] (view) "key(databases/backup/url)" stopping poll (received on view stopCh) | |
mac-c02nx126g5rp:consul-poc clstokes$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac-c02nx126g5rp:consul-poc clstokes$ cat consul-template/ingest.ctmpl | |
{{range $key, $pairs := tree "databases" | byKey}} | |
{{ $key }}:{{with $url := printf "databases/%s/url" $key }} | |
#urlPath: {{ $url }} <- for troubleshooting purposes | |
{{end}}{{end}} | |
mac-c02nx126g5rp:consul-poc clstokes$ ~/cc/other/consul-template/bin/consul-template -consul 127.0.0.1:8500 -template "consul-template/ingest.ctmpl:build/out" -dry -once -log-level debug | |
2015/03/09 10:11:43 [INFO] (runner) creating new runner (dry: true, once: true) | |
2015/03/09 10:11:43 [INFO] (runner) creating consul/api client | |
2015/03/09 10:11:43 [DEBUG] (runner) setting address to 127.0.0.1:8500 | |
2015/03/09 10:11:43 [DEBUG] (runner) setting basic auth | |
2015/03/09 10:11:43 [INFO] (runner) creating Watcher | |
2015/03/09 10:11:43 [INFO] (runner) starting | |
2015/03/09 10:11:43 [DEBUG] (runner) running initial templates | |
2015/03/09 10:11:43 [INFO] (runner) running | |
2015/03/09 10:11:43 [DEBUG] (runner) checking template consul-template/ingest.ctmpl | |
2015/03/09 10:11:43 [DEBUG] (brain) does not have data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [INFO] (runner) was not watching 1 dependencies | |
2015/03/09 10:11:43 [INFO] (watcher) adding "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [DEBUG] (watcher) "storeKeyPrefix(databases)" starting | |
2015/03/09 10:11:43 [INFO] (runner) diffing and updating dependencies | |
2015/03/09 10:11:43 [INFO] (runner) watching 1 dependencies | |
2015/03/09 10:11:43 [DEBUG] (view) "storeKeyPrefix(databases)" starting fetch | |
2015/03/09 10:11:43 [DEBUG] ("storeKeyPrefix(databases)") querying Consul with &{Datacenter: AllowStale:false RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token:} | |
2015/03/09 10:11:43 [DEBUG] ("storeKeyPrefix(databases)") Consul returned 6 key pairs | |
2015/03/09 10:11:43 [INFO] (view) "storeKeyPrefix(databases)" received data from consul | |
2015/03/09 10:11:43 [DEBUG] (runner) receiving dependency "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [INFO] (brain) remembering "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [INFO] (runner) running | |
2015/03/09 10:11:43 [DEBUG] (runner) checking template consul-template/ingest.ctmpl | |
2015/03/09 10:11:43 [INFO] (brain) recalling data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [INFO] (brain) recalling data for "storeKeyPrefix(databases)" | |
2015/03/09 10:11:43 [DEBUG] (runner) checking ctemplate &{Source:consul-template/ingest.ctmpl Destination:build/out Command:} | |
> build/out | |
backup: | |
#urlPath: databases/backup/url <- for troubleshooting purposes | |
main: | |
#urlPath: databases/main/url <- for troubleshooting purposes | |
2015/03/09 10:11:43 [DEBUG] (runner) wouldRender: true, didRender: true | |
2015/03/09 10:11:43 [INFO] (runner) diffing and updating dependencies | |
2015/03/09 10:11:43 [DEBUG] (runner) "storeKeyPrefix(databases)" is still needed | |
2015/03/09 10:11:43 [INFO] (runner) watching 1 dependencies | |
2015/03/09 10:11:43 [INFO] (runner) once mode and all templates rendered | |
2015/03/09 10:11:43 [INFO] (runner) stopping | |
2015/03/09 10:11:43 [INFO] (watcher) stopping all views | |
2015/03/09 10:11:43 [DEBUG] (watcher) stopping "storeKeyPrefix(databases)" | |
mac-c02nx126g5rp:consul-poc clstokes$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment