diff --git a/Dockerfile b/Dockerfile index 0506994..7a83cf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2022 DigitalOcean +# +# 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 ubuntu:20.04 as builder MAINTAINER Vaibhav Bhembre diff --git a/ceph/cluster_usage.go b/ceph/cluster_usage.go index 611befe..9518a6a 100644 --- a/ceph/cluster_usage.go +++ b/ceph/cluster_usage.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/cluster_usage_test.go b/ceph/cluster_usage_test.go index 1664a7c..a37e9ed 100644 --- a/ceph/cluster_usage_test.go +++ b/ceph/cluster_usage_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/conn.go b/ceph/conn.go index a9060e8..0a925a3 100644 --- a/ceph/conn.go +++ b/ceph/conn.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/doc.go b/ceph/doc.go deleted file mode 100644 index 305abfd..0000000 --- a/ceph/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package collectors provides a number of Prometheus collectors which are -// capable of retrieving metrics from a Ceph cluster. -package ceph diff --git a/ceph/exporter.go b/ceph/exporter.go index dda47c1..e2a7d95 100644 --- a/ceph/exporter.go +++ b/ceph/exporter.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/health.go b/ceph/health.go index 9600450..dfe70fd 100644 --- a/ceph/health.go +++ b/ceph/health.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/health_test.go b/ceph/health_test.go index 5fd4476..1fb9e92 100644 --- a/ceph/health_test.go +++ b/ceph/health_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/monitors.go b/ceph/monitors.go index f98e7fb..5e800fd 100644 --- a/ceph/monitors.go +++ b/ceph/monitors.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/monitors_test.go b/ceph/monitors_test.go index 18f0d0e..8ccbfbc 100644 --- a/ceph/monitors_test.go +++ b/ceph/monitors_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/osd.go b/ceph/osd.go index cfda1d4..4f57e6e 100644 --- a/ceph/osd.go +++ b/ceph/osd.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/osd_test.go b/ceph/osd_test.go index 1866483..345337b 100644 --- a/ceph/osd_test.go +++ b/ceph/osd_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/pool.go b/ceph/pool.go index d541f8e..b9b6f54 100644 --- a/ceph/pool.go +++ b/ceph/pool.go @@ -1,4 +1,4 @@ -// Copyright 2019 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/pool_test.go b/ceph/pool_test.go index 91e63fd..b48edcb 100644 --- a/ceph/pool_test.go +++ b/ceph/pool_test.go @@ -1,4 +1,4 @@ -// Copyright 2019 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/pool_usage.go b/ceph/pool_usage.go index 584e8d3..63caf87 100644 --- a/ceph/pool_usage.go +++ b/ceph/pool_usage.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/pool_usage_test.go b/ceph/pool_usage_test.go index 92a4a53..56b8998 100644 --- a/ceph/pool_usage_test.go +++ b/ceph/pool_usage_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ceph/rgw.go b/ceph/rgw.go index c062fd6..0f7be66 100644 --- a/ceph/rgw.go +++ b/ceph/rgw.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/rgw_test.go b/ceph/rgw_test.go index ff878cf..2393b41 100644 --- a/ceph/rgw_test.go +++ b/ceph/rgw_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/version.go b/ceph/version.go index bf615a2..fb6a57b 100644 --- a/ceph/version.go +++ b/ceph/version.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/ceph/version_test.go b/ceph/version_test.go index ddde123..441341b 100644 --- a/ceph/version_test.go +++ b/ceph/version_test.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package ceph import ( diff --git a/config.go b/config.go index a374b99..f6ee237 100644 --- a/config.go +++ b/config.go @@ -1,3 +1,17 @@ +// Copyright 2022 DigitalOcean +// +// 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. + package main import ( diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml index 91e58dd..f423e67 100644 --- a/examples/docker-compose.yml +++ b/examples/docker-compose.yml @@ -1,3 +1,17 @@ +# Copyright 2022 DigitalOcean +# +# 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. + # Example usage of exporter in use # In this case, it depends on the proper ceph keys in the correct place. Adapt this to your use case if you would like to use in production diff --git a/examples/prometheus.yml b/examples/prometheus.yml index cc9c9bb..9621ee2 100644 --- a/examples/prometheus.yml +++ b/examples/prometheus.yml @@ -1,3 +1,17 @@ +# Copyright 2022 DigitalOcean +# +# 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. + # prometheus.yml # Place in same directory as docker-compose.yml and replace $DOCKERHOST with your desired host IP where ceph_exporter is running diff --git a/exporter.yml b/exporter.yml index 8151078..1616143 100644 --- a/exporter.yml +++ b/exporter.yml @@ -1,3 +1,17 @@ +# Copyright 2022 DigitalOcean +# +# 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. + cluster: - cluster_label: block01 user: admin diff --git a/main.go b/main.go index 93d7d56..d4343c6 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -// Copyright 2016 DigitalOcean +// Copyright 2022 DigitalOcean // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.