diff options
author | Felipe Artur <fcardozo@gitlab.com> | 2018-05-07 08:46:23 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-05-07 08:46:23 +0000 |
commit | a9d0deebd2813c2bd070e6bfedc71fa9fadb2ad0 (patch) | |
tree | c598e36f6d9228665afc2838ffbce7c1abd840f8 /db | |
parent | 1492cf8f5792b436d6366e6cad20a708a19ea662 (diff) | |
download | gitlab-ce-a9d0deebd2813c2bd070e6bfedc71fa9fadb2ad0.tar.gz |
Enable prometheus metrics by default
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb b/db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb new file mode 100644 index 00000000000..2c8f86ff0f4 --- /dev/null +++ b/db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb @@ -0,0 +1,11 @@ +class EnablePrometheusMetricsByDefault < ActiveRecord::Migration + DOWNTIME = false + + def up + change_column_default :application_settings, :prometheus_metrics_enabled, true + end + + def down + change_column_default :application_settings, :prometheus_metrics_enabled, false + end +end diff --git a/db/schema.rb b/db/schema.rb index 27c70c03612..1f592c019fa 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180503175054) do +ActiveRecord::Schema.define(version: 20180503200320) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -134,7 +134,7 @@ ActiveRecord::Schema.define(version: 20180503175054) do t.integer "cached_markdown_version" t.boolean "clientside_sentry_enabled", default: false, null: false t.string "clientside_sentry_dsn" - t.boolean "prometheus_metrics_enabled", default: false, null: false + t.boolean "prometheus_metrics_enabled", default: true, null: false t.boolean "help_page_hide_commercial_content", default: false t.string "help_page_support_url" t.integer "performance_bar_allowed_group_id" |