From fb3cb60127feef220f9eb198a44ccaeb4d6e7113 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20R=C3=B6hl?= <Thomas.Roehl@googlemail.com>
Date: Tue, 29 Apr 2025 16:48:24 +0200
Subject: [PATCH] Add copyright header to Golang files

---
 cc-metric-collector.go                                 | 7 +++++++
 collectors/beegfsmetaMetric.go                         | 7 +++++++
 collectors/beegfsstorageMetric.go                      | 7 +++++++
 collectors/collectorManager.go                         | 7 +++++++
 collectors/cpufreqCpuinfoMetric.go                     | 7 +++++++
 collectors/cpufreqMetric.go                            | 7 +++++++
 collectors/cpustatMetric.go                            | 7 +++++++
 collectors/customCmdMetric.go                          | 7 +++++++
 collectors/diskstatMetric.go                           | 7 +++++++
 collectors/gpfsMetric.go                               | 7 +++++++
 collectors/infinibandMetric.go                         | 7 +++++++
 collectors/iostatMetric.go                             | 7 +++++++
 collectors/ipmiMetric.go                               | 7 +++++++
 collectors/likwidMetric.go                             | 7 +++++++
 collectors/loadavgMetric.go                            | 7 +++++++
 collectors/lustreMetric.go                             | 7 +++++++
 collectors/memstatMetric.go                            | 7 +++++++
 collectors/metricCollector.go                          | 7 +++++++
 collectors/netstatMetric.go                            | 7 +++++++
 collectors/nfsMetric.go                                | 7 +++++++
 collectors/nfsiostatMetric.go                          | 7 +++++++
 collectors/numastatsMetric.go                          | 7 +++++++
 collectors/nvidiaMetric.go                             | 7 +++++++
 collectors/raplMetric.go                               | 7 +++++++
 collectors/rocmsmiMetric.go                            | 7 +++++++
 collectors/sampleMetric.go                             | 7 +++++++
 collectors/sampleTimerMetric.go                        | 7 +++++++
 collectors/schedstatMetric.go                          | 7 +++++++
 collectors/selfMetric.go                               | 7 +++++++
 collectors/tempMetric.go                               | 7 +++++++
 collectors/topprocsMetric.go                           | 7 +++++++
 internal/metricAggregator/metricAggregator.go          | 7 +++++++
 internal/metricAggregator/metricAggregatorFunctions.go | 7 +++++++
 internal/metricRouter/metricCache.go                   | 7 +++++++
 internal/metricRouter/metricRouter.go                  | 7 +++++++
 pkg/ccTopology/ccTopology.go                           | 7 +++++++
 pkg/multiChanTicker/multiChanTicker.go                 | 7 +++++++
 37 files changed, 259 insertions(+)

diff --git a/cc-metric-collector.go b/cc-metric-collector.go
index 7b4a415..a26e439 100644
--- a/cc-metric-collector.go
+++ b/cc-metric-collector.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package main
 
 import (
diff --git a/collectors/beegfsmetaMetric.go b/collectors/beegfsmetaMetric.go
index f8786b8..d76e9eb 100644
--- a/collectors/beegfsmetaMetric.go
+++ b/collectors/beegfsmetaMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/beegfsstorageMetric.go b/collectors/beegfsstorageMetric.go
index 3fc27e6..a5111d1 100644
--- a/collectors/beegfsstorageMetric.go
+++ b/collectors/beegfsstorageMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/collectorManager.go b/collectors/collectorManager.go
index 2aea6c0..8676f7c 100644
--- a/collectors/collectorManager.go
+++ b/collectors/collectorManager.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/cpufreqCpuinfoMetric.go b/collectors/cpufreqCpuinfoMetric.go
index 7bee412..b9c1458 100644
--- a/collectors/cpufreqCpuinfoMetric.go
+++ b/collectors/cpufreqCpuinfoMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/cpufreqMetric.go b/collectors/cpufreqMetric.go
index 2106d06..672cc18 100644
--- a/collectors/cpufreqMetric.go
+++ b/collectors/cpufreqMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/cpustatMetric.go b/collectors/cpustatMetric.go
index 7f1fdc9..f5a36ac 100644
--- a/collectors/cpustatMetric.go
+++ b/collectors/cpustatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/customCmdMetric.go b/collectors/customCmdMetric.go
index 42b206b..a25d733 100644
--- a/collectors/customCmdMetric.go
+++ b/collectors/customCmdMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/diskstatMetric.go b/collectors/diskstatMetric.go
index f0db3d3..4a68b75 100644
--- a/collectors/diskstatMetric.go
+++ b/collectors/diskstatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/gpfsMetric.go b/collectors/gpfsMetric.go
index 9753566..1d7b869 100644
--- a/collectors/gpfsMetric.go
+++ b/collectors/gpfsMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/infinibandMetric.go b/collectors/infinibandMetric.go
index 50bc3d0..dd3a98b 100644
--- a/collectors/infinibandMetric.go
+++ b/collectors/infinibandMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/iostatMetric.go b/collectors/iostatMetric.go
index be37abc..61ba61d 100644
--- a/collectors/iostatMetric.go
+++ b/collectors/iostatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/ipmiMetric.go b/collectors/ipmiMetric.go
index 16a1f83..d198bbb 100644
--- a/collectors/ipmiMetric.go
+++ b/collectors/ipmiMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/likwidMetric.go b/collectors/likwidMetric.go
index 2b8f9d4..85b1b99 100644
--- a/collectors/likwidMetric.go
+++ b/collectors/likwidMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 /*
diff --git a/collectors/loadavgMetric.go b/collectors/loadavgMetric.go
index 4cdf704..dab459c 100644
--- a/collectors/loadavgMetric.go
+++ b/collectors/loadavgMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/lustreMetric.go b/collectors/lustreMetric.go
index 1678d1d..e826fb5 100644
--- a/collectors/lustreMetric.go
+++ b/collectors/lustreMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/memstatMetric.go b/collectors/memstatMetric.go
index 632d8b3..8f76b63 100644
--- a/collectors/memstatMetric.go
+++ b/collectors/memstatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/metricCollector.go b/collectors/metricCollector.go
index e9bb6ae..6182430 100644
--- a/collectors/metricCollector.go
+++ b/collectors/metricCollector.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/netstatMetric.go b/collectors/netstatMetric.go
index 5f55a56..33eea6f 100644
--- a/collectors/netstatMetric.go
+++ b/collectors/netstatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/nfsMetric.go b/collectors/nfsMetric.go
index b8351b2..b961b9d 100644
--- a/collectors/nfsMetric.go
+++ b/collectors/nfsMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/nfsiostatMetric.go b/collectors/nfsiostatMetric.go
index b605270..cf69023 100644
--- a/collectors/nfsiostatMetric.go
+++ b/collectors/nfsiostatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/numastatsMetric.go b/collectors/numastatsMetric.go
index 2a5730c..995089a 100644
--- a/collectors/numastatsMetric.go
+++ b/collectors/numastatsMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/nvidiaMetric.go b/collectors/nvidiaMetric.go
index 8197777..93c73b4 100644
--- a/collectors/nvidiaMetric.go
+++ b/collectors/nvidiaMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/raplMetric.go b/collectors/raplMetric.go
index 6f16715..0a78ab9 100644
--- a/collectors/raplMetric.go
+++ b/collectors/raplMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/rocmsmiMetric.go b/collectors/rocmsmiMetric.go
index c70dfd0..fa1a46a 100644
--- a/collectors/rocmsmiMetric.go
+++ b/collectors/rocmsmiMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/sampleMetric.go b/collectors/sampleMetric.go
index acdf83f..9cc8973 100644
--- a/collectors/sampleMetric.go
+++ b/collectors/sampleMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/sampleTimerMetric.go b/collectors/sampleTimerMetric.go
index 3971799..4e5d055 100644
--- a/collectors/sampleTimerMetric.go
+++ b/collectors/sampleTimerMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/schedstatMetric.go b/collectors/schedstatMetric.go
index 039071c..f49e56c 100644
--- a/collectors/schedstatMetric.go
+++ b/collectors/schedstatMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/selfMetric.go b/collectors/selfMetric.go
index a97484b..8457254 100644
--- a/collectors/selfMetric.go
+++ b/collectors/selfMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/tempMetric.go b/collectors/tempMetric.go
index 503e41f..109ab39 100644
--- a/collectors/tempMetric.go
+++ b/collectors/tempMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/collectors/topprocsMetric.go b/collectors/topprocsMetric.go
index 7eed446..eca380e 100644
--- a/collectors/topprocsMetric.go
+++ b/collectors/topprocsMetric.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package collectors
 
 import (
diff --git a/internal/metricAggregator/metricAggregator.go b/internal/metricAggregator/metricAggregator.go
index 2f53616..c64556e 100644
--- a/internal/metricAggregator/metricAggregator.go
+++ b/internal/metricAggregator/metricAggregator.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package metricAggregator
 
 import (
diff --git a/internal/metricAggregator/metricAggregatorFunctions.go b/internal/metricAggregator/metricAggregatorFunctions.go
index 0f1468b..58134c1 100644
--- a/internal/metricAggregator/metricAggregatorFunctions.go
+++ b/internal/metricAggregator/metricAggregatorFunctions.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package metricAggregator
 
 import (
diff --git a/internal/metricRouter/metricCache.go b/internal/metricRouter/metricCache.go
index b200fba..40a9203 100644
--- a/internal/metricRouter/metricCache.go
+++ b/internal/metricRouter/metricCache.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package metricRouter
 
 import (
diff --git a/internal/metricRouter/metricRouter.go b/internal/metricRouter/metricRouter.go
index 6453558..665a094 100644
--- a/internal/metricRouter/metricRouter.go
+++ b/internal/metricRouter/metricRouter.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package metricRouter
 
 import (
diff --git a/pkg/ccTopology/ccTopology.go b/pkg/ccTopology/ccTopology.go
index ee05dd3..24e6eb1 100644
--- a/pkg/ccTopology/ccTopology.go
+++ b/pkg/ccTopology/ccTopology.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package ccTopology
 
 import (
diff --git a/pkg/multiChanTicker/multiChanTicker.go b/pkg/multiChanTicker/multiChanTicker.go
index 5707378..83cfc45 100644
--- a/pkg/multiChanTicker/multiChanTicker.go
+++ b/pkg/multiChanTicker/multiChanTicker.go
@@ -1,3 +1,10 @@
+// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
+// All rights reserved. This file is part of cc-lib.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+// additional authors:
+// Holger Obermaier (NHR@KIT)
+
 package multiChanTicker
 
 import (