consul-templaterb 1.9.6 → 1.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d97e523ed7d46b52d6f8076263af42d649f01f74085d5ae58a613cf38ab14e31
4
- data.tar.gz: 99255a8e34cae9c05d685f88df56452b77b939d99c6c0b0d48fa3b2156e40457
3
+ metadata.gz: 8362a90f73e7dfef755f1daeba28b350b62951f3ddaf795eb3449f6b7f489be6
4
+ data.tar.gz: 57d7df6ab6061ef40349698d3a7ac8eab02d7f7fbf84a5c22fa9e89e88a72771
5
5
  SHA512:
6
- metadata.gz: b6c10ccb302c52e4c97d5b7620b6123cbbca69abe720b8ef2764fbc30fd449ea5fc89412ad9bf7ade0de3c8f12b67dcb5d6058159cf3db212bf452c6efaa9067
7
- data.tar.gz: 168bf127d58cff2c48de8cddda29b6eeac7d113563c61b15dea881fbfb2339e46b69734ad681ba6d3298d50a548b87707faea3d506ce9188f7580de321126b8f
6
+ metadata.gz: d0ebfdef413617a55914847a798123a5541fcec5968e88967fb8919fb9ab0005d7ed2c29972bf5de71cd36764bec6c013fc4943e095f83fde22f4edcfc06a85b
7
+ data.tar.gz: 5de05990e69ec4c009990728233288b09ea22c32181fe441fbfd11e52c93d831c08ce5be87fd55a0666070e2992a250e55c9f2ac878fb77f800283b61334cbec
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## (UNRELEASED)
4
4
 
5
+ ## 1.9.7 (January 15, 2019)
6
+
7
+ IMPROVEMENTS:
8
+
9
+ * `timeline.json.erb` now uses `CONSUL_TIMELINE_BLACKLIST` environment variable
10
+ to blacklist services to be hidden from timeline.
11
+
5
12
  ## 1.9.6 (January 15, 2019)
6
13
 
7
14
  BUGFIX:
@@ -1,5 +1,5 @@
1
1
  module Consul
2
2
  module Async
3
- VERSION = '1.9.6'.freeze
3
+ VERSION = '1.9.7'.freeze
4
4
  end
5
5
  end
@@ -62,8 +62,9 @@ Will generate index.html and consul_template.json in your directory, so you migh
62
62
 
63
63
  This app supports the following environment variables:
64
64
 
65
- * SERVICES_TAG_FILTER: basic tag filter for service (default HTTP)
66
- * INSTANCE_MUST_TAG: Second level of filtering (optional, default to SERVICES_TAG_FILTER)
67
- * INSTANCE_EXCLUDE_TAG: Exclude instances having the given tag (default: canary)
68
- * EXCLUDE_SERVICES: comma-separated services to exclude (default: consul-agent-http,mesos-slave,mesos-agent-watcher)
69
- * CONSUL_TIMELINE_BUFFER: number of entries to keep in the timeline. 1000 by default.
65
+ * `SERVICES_TAG_FILTER`: basic tag filter for service (default HTTP)
66
+ * `INSTANCE_MUST_TAG`: Second level of filtering (optional, default to SERVICES_TAG_FILTER)
67
+ * `INSTANCE_EXCLUDE_TAG`: Exclude instances having the given tag (default: canary)
68
+ * `EXCLUDE_SERVICES`: comma-separated services to exclude (default: consul-agent-http,mesos-slave,mesos-agent-watcher)
69
+ * `CONSUL_TIMELINE_BUFFER`: number of entries to keep in the timeline. 1000 by default.
70
+ * `CONSUL_TIMELINE_BLACKLIST`: regexp of services to hide from timeline
@@ -2,12 +2,15 @@
2
2
  require 'json'
3
3
  require 'set'
4
4
  services_blacklist = (ENV['EXCLUDE_SERVICES'] || 'consul-agent-http,mesos-slave,mesos-agent-watcher,mesos-exporter-slave').split(',')
5
+ timeline_blacklist = ENV['CONSUL_TIMELINE_BLACKLIST'] || '(lbl7-.*|netsvc-.*)'
6
+ timeline_blacklist = Regexp.new(timeline_blacklist)
5
7
 
6
8
  @current_time = Time.now.utc.iso8601
7
9
  @last_service_info = {}
8
10
  @newest_index = 0 unless @newest_index
9
11
  cur_state = services.map do |service_name, _tags|
10
12
  next if services_blacklist.include?(service_name)
13
+ next if timeline_blacklist.match(service_name)
11
14
 
12
15
  snodes = service(service_name)
13
16
  cur_stats = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul-templaterb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - SRE Core Services