From 0a9d771bcba036971ebc076112c4a62f2179e372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Fri, 31 Aug 2018 18:53:50 +0200 Subject: Import common metrics into database. This MR backports PrometheusMetric model to CE and adds: common, identifier to figure out what kind of metric is used. --- app/models/project.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/project.rb') diff --git a/app/models/project.rb b/app/models/project.rb index 67593c9b2fe..435ecc59bc4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -232,6 +232,8 @@ class Project < ActiveRecord::Base has_many :clusters, through: :cluster_project, class_name: 'Clusters::Cluster' has_many :cluster_ingresses, through: :clusters, source: :application_ingress, class_name: 'Clusters::Applications::Ingress' + has_many :prometheus_metrics + # Container repositories need to remove data from the container registry, # which is not managed by the DB. Hence we're still using dependent: :destroy # here. -- cgit v1.2.1