From 370d84eb4f23c5db890f8175b800b53c9df9ad2c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:03:06 +0500 Subject: [PATCH] Auto-update license header (#1) --- scripts/cloud_sql_metric_utils.py | 14 ++++++++++++++ scripts/collector_utils.py | 14 ++++++++++++++ scripts/gpdb.py | 14 ++++++++++++++ scripts/m_utils.py | 14 ++++++++++++++ scripts/metric-collector.py | 14 ++++++++++++++ scripts/metric.py | 14 ++++++++++++++ scripts/metrics_query_utils.py | 14 ++++++++++++++ scripts/monitoring/additional_metrics_wrapper.sh | 14 ++++++++++++++ scripts/monitoring/pgpool.py | 14 ++++++++++++++ scripts/oc_utils.py | 14 ++++++++++++++ scripts/pod_utils.py | 14 ++++++++++++++ scripts/telegraf/preparation_script.py | 14 ++++++++++++++ scripts/telegraf/telegraf.sh | 14 ++++++++++++++ scripts/ura-collector.py | 14 ++++++++++++++ 14 files changed, 196 insertions(+) diff --git a/scripts/cloud_sql_metric_utils.py b/scripts/cloud_sql_metric_utils.py index 177de1a..5b5d678 100644 --- a/scripts/cloud_sql_metric_utils.py +++ b/scripts/cloud_sql_metric_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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 google.cloud import monitoring_v3 from googleapiclient import discovery import time diff --git a/scripts/collector_utils.py b/scripts/collector_utils.py index 722653f..5fd1430 100644 --- a/scripts/collector_utils.py +++ b/scripts/collector_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import decimal import logging import os diff --git a/scripts/gpdb.py b/scripts/gpdb.py index a9e8a5c..6426916 100644 --- a/scripts/gpdb.py +++ b/scripts/gpdb.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import logging from multiprocessing.pool import ThreadPool diff --git a/scripts/m_utils.py b/scripts/m_utils.py index 4be9943..54c3d2f 100644 --- a/scripts/m_utils.py +++ b/scripts/m_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import logging import os diff --git a/scripts/metric-collector.py b/scripts/metric-collector.py index cf324d1..824c499 100755 --- a/scripts/metric-collector.py +++ b/scripts/metric-collector.py @@ -1,4 +1,18 @@ #!/usr/bin/env python +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import argparse import logging diff --git a/scripts/metric.py b/scripts/metric.py index 26fc000..87f34e5 100644 --- a/scripts/metric.py +++ b/scripts/metric.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import os default_tags = { diff --git a/scripts/metrics_query_utils.py b/scripts/metrics_query_utils.py index 59638a5..f7a7c31 100644 --- a/scripts/metrics_query_utils.py +++ b/scripts/metrics_query_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import logging logger = logging.getLogger("metric-collector") diff --git a/scripts/monitoring/additional_metrics_wrapper.sh b/scripts/monitoring/additional_metrics_wrapper.sh index cc6d441..1a2a4ac 100755 --- a/scripts/monitoring/additional_metrics_wrapper.sh +++ b/scripts/monitoring/additional_metrics_wrapper.sh @@ -1,2 +1,16 @@ #!/usr/bin/env bash +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + [ "$METRICS_PROFILE" == dev ] && /monitor/metrics --perf_metrics=true \ No newline at end of file diff --git a/scripts/monitoring/pgpool.py b/scripts/monitoring/pgpool.py index fb61d0f..ff9ffe6 100644 --- a/scripts/monitoring/pgpool.py +++ b/scripts/monitoring/pgpool.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import os import psycopg2 diff --git a/scripts/oc_utils.py b/scripts/oc_utils.py index f553ce3..9217585 100644 --- a/scripts/oc_utils.py +++ b/scripts/oc_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import base64 import json import logging diff --git a/scripts/pod_utils.py b/scripts/pod_utils.py index 08e18da..bad484a 100644 --- a/scripts/pod_utils.py +++ b/scripts/pod_utils.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import logging from m_utils import safe_get diff --git a/scripts/telegraf/preparation_script.py b/scripts/telegraf/preparation_script.py index 4faad73..6fa939c 100644 --- a/scripts/telegraf/preparation_script.py +++ b/scripts/telegraf/preparation_script.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + import os import logging diff --git a/scripts/telegraf/telegraf.sh b/scripts/telegraf/telegraf.sh index 9ce8e32..43c8693 100755 --- a/scripts/telegraf/telegraf.sh +++ b/scripts/telegraf/telegraf.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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. + export METRICS_PROFILE=${METRICS_PROFILE:-prod} diff --git a/scripts/ura-collector.py b/scripts/ura-collector.py index 9e149a4..2461820 100644 --- a/scripts/ura-collector.py +++ b/scripts/ura-collector.py @@ -1,3 +1,17 @@ +# Copyright 2024-2025 NetCracker Technology Corporation +# +# Licensed 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 datetime import datetime import urllib.request, urllib.error, urllib.parse import json