diff --git a/ozhera-prometheus-agent/aliAlertMessage.txt b/ozhera-prometheus-agent/aliAlertMessage.txt deleted file mode 100644 index 8975c91a2..000000000 --- a/ozhera-prometheus-agent/aliAlertMessage.txt +++ /dev/null @@ -1,46 +0,0 @@ -{ - "alerts":[ - {{ for .alerts }} - { - "annotations": { - "title": "{{ .annotations.title }}" - }, - "endsAt": "{{ .endsAt }}", - "fingerprint": "{{ .fingerprint }}", - "labels": { - "alert_op": "{{ .labels.alert_op }}", - "alert_value": "{{ .labels.alert_value }}", - "alertname": "{{ .labels.alertname }}", - "application": "{{ .labels.application }}", - "methodName": "{{ .labels.methodName }}", - "metrics": "{{ .labels.metrics }}", - "metrics_flag": "{{ .labels.metrics_flag }}", - "serverEnv": "{{ .labels.serverEnv }}", - "serverIp": "{{ .labels.serverIp }}", - "ip": "{{ .labels.ip }}", - "job": "{{ .labels.job }}", - "namespace": "{{ .labels.namespace }}", - "pod": "{{ .labels.pod }}", - "detailRedirectUrl": "{{ .labels.detailRedirectUrl }}", - "serviceName":"{{ .labels.serviceName }}", - "send_interval":"{{ .labels.send_interval }}" - }, - "startsAt": "{{ .startsAt }}", - "status": "{{ .status }}" - } - {{ end }} - ], -"commonAnnotations": { - "title": "{{ .commonAnnotations.title }}" -}, -"groupKey":null, -"receiver":null, -"truncatedAlerts":0, -"version":4, - "status": "{{ .status }}", - "startTime":"{{ .startTime }}", - "endTime":"{{ .endTime }}", - "level":"{{ .level }}", - "dispatchRuleName":"{{ .dispatchRuleName }}", - "alarmId":"{{ .alarmId }}" -} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/Dockerfile b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/Dockerfile index 37222bad3..dca5085fb 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/Dockerfile +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/Dockerfile @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM openjdk:21-jdk-bookworm MAINTAINER youpin-biz-arch@xiaomi.com RUN mkdir -p /home/work/prometheus-agent/ diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/build.sh b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/build.sh index 58764f433..b147d3a94 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/build.sh +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/build.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Extract the cluster from the job name job=$1 cluster=$(echo $job | sed -n 's/.*_cluster\.\([^._]*\)_.*/\1/p') diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/deploy/manifests/config.pp.template b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/deploy/manifests/config.pp.template deleted file mode 100644 index c13de97da..000000000 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/deploy/manifests/config.pp.template +++ /dev/null @@ -1,60 +0,0 @@ -class base { -#Default configuration,Required,Uneditable。 - $basedir = "$" - $user = "$< user >" - $mod_ver = "$< version >" - $pkg_dir = "$< pkg_dir >" - $mod_name = "$< name >" - $tag = "$< tag >" - - $prog_name = "prometheus-agent" - $prog_logdir = "/home/work/log/${prog_name}/" - $mod_proc_log = "${prog_logdir}/${prog_name}.log" - $mod_run_log = "${basedir}/run.log" - - $to_email = "" - $mod_start = "/opt/soft/openjdk1.8.0_202/bin/java -Xms2g -Xmx2g -XX:MaxDirectMemorySize=500M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 \ - -XX:+PrintReferenceGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -verbose:gc \ - -Xloggc:/home/work/log/prometheus-agent/gc.log -jar ${basedir}/prometheus-agent-server-1.0.0-SNAPSHOT.jar -r" - - - $run_dir = "${basedir}" - $run_env= {"JAVA_HOME" => "/opt/soft/openjdk1.8.0_202", "CLASSPATH" => ".:/opt/soft/openjdk1.8.0_202/jre/lib:/opt/soft/openjdk1.8.0_202/lib:/opt/soft/openjdk1.8.0_202/lib/tools.jar:/opt/soft/openjdk1.8.0_202/lib/dt.jar", "JAVA_OPTS" => ""} - } -class preview inherits base { -} - -class production-sd inherits base { -} - -class production-lg inherits base { -} - -class production-hh inherits base { -} - -class c3 inherits base { -} - -class c4 inherits base { -} - -class aws-sgp inherits base { -} - -class aws-de inherits base { -} - -class aws-mb inherits base { -} - -class ali-sgp inherits base { -} - -class staging inherits base { -} - -class onebox inherits base { -} - -class config inherits $ {} diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/Dockerfile b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/Dockerfile index 820412293..bbe48be72 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/Dockerfile +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/Dockerfile @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM openjdk:8-jre MAINTAINER youpin-biz-arch@xiaomi.com RUN mkdir -p /home/work/prometheus-agent/ diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/ddl.sql b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/ddl.sql deleted file mode 100644 index 425273b5e..000000000 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/ddl.sql +++ /dev/null @@ -1,79 +0,0 @@ -CREATE TABLE `scrape_config` -( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `prom_cluster` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'public' COMMENT 'prometheus cluster name', - `region` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'region', - `zone` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'availability zone', - `env` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'config env:staging,preview,production', - `status` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending' COMMENT 'current status of the task (whether the delivery was successful):pending、success', - `instances` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'instances of collection tasks: comma separated', - `job_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'name of the collection task', - `body` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'scrape_config struct json string', - `created_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'creator', - `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time', - `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'updated time', - `deleted_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'deleter', - `deleted_time` timestamp NULL DEFAULT NULL COMMENT 'deleted time', - PRIMARY KEY (`id`), - UNIQUE KEY `unq_job_name` (`job_name`,`deleted_by`) USING BTREE, - KEY `idx_prom_cluster` (`prom_cluster`), - KEY `idx_region` (`region`), - KEY `idx_zone` (`zone`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; - -CREATE TABLE `prometheus_alert` -( - `id` int NOT NULL AUTO_INCREMENT COMMENT 'alert id', - `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'alert name', - `cname` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'alert cname', - `expr` varchar(4096) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'expr', - `labels` varchar(4096) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'labels', - `alert_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'for', - `env` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'config environment', - `enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'enabled', - `priority` tinyint NOT NULL COMMENT 'priority', - `created_by` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'creator', - `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time', - `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'updated time', - `deleted_by` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'delete user', - `deleted_time` timestamp NULL DEFAULT NULL COMMENT 'deleted time', - `prom_cluster` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'public' COMMENT 'prometheus cluster name', - `status` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending' COMMENT 'Whether the configuration is successfully delivered:pending、success', - `instances` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'instances of collection tasks: comma separated', - `thresholds_op` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Multi-threshold operator, supports [or] , [and]', - `thresholds` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci COMMENT 'Alarm threshold array (use this field in simple mode)', - `type` int DEFAULT NULL COMMENT 'Mode, simple mode is 0, complex mode is 1', - `alert_member` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'alert_member', - `alert_at_people` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'alert at people', - `annotations` varchar(4096) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '' COMMENT 'Comment', - `alert_group` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'group', - PRIMARY KEY (`id`), - UNIQUE KEY `uniq_name` (`name`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; - - -CREATE TABLE `silence_matcher` -( - `silence_id` int NOT NULL COMMENT 'silence id', - `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'name', - `value` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'value', - `is_regex` tinyint(1) NOT NULL COMMENT 'if is regex matcher', - `is_equal` tinyint(1) NOT NULL COMMENT ' if is equal matcher' -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; - - -CREATE TABLE `silence` -( - `id` int NOT NULL AUTO_INCREMENT COMMENT 'silence id', - `uuid` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'silence uuid', - `comment` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'creator', - `start_time` timestamp NOT NULL COMMENT 'silence start time', - `end_time` timestamp NOT NULL COMMENT 'silence end time', - `created_by` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'creator', - `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time', - `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'updated time', - `prom_cluster` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'public' COMMENT 'prometheus cluster name', - `status` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending' COMMENT 'Whether the configuration is successfully delivered:pending、success', - `alert_id` int NOT NULL DEFAULT '0' COMMENT 'alert id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicCart.ftl index 1b1206043..65534ff57 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + { "config": { "autoLayout": true, diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicUpdateCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicUpdateCart.ftl index 8433850ea..f5972b49c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicUpdateCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/dingding/dingdingbasicUpdateCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + { "config": { "autoLayout": true, diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuBasicCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuBasicCart.ftl index b365ca69d..09c7d5493 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuBasicCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuBasicCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + { "config": { "wide_screen_mode": true diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuCart.ftl index df566d2e3..90bd621a2 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + { "config": { "wide_screen_mode": true diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuInterfalCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuInterfalCart.ftl index 6cba6f12e..4f6f0ef68 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuInterfalCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/feishu/feishuInterfalCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + { "config": { "wide_screen_mode": true diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailBasic.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailBasic.ftl index e5394006f..18984e7d3 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailBasic.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailBasic.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailCart.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailCart.ftl index 4ef2aedb5..855c05054 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailCart.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailCart.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailInterfal.ftl b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailInterfal.ftl index 0875d3fff..31025260b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailInterfal.ftl +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/resources/mail/mailInterfal.ftl @@ -1,3 +1,22 @@ +<#-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +