diff --git a/internal/apiserver/metrics_server.go b/internal/apiserver/metrics_server.go index 60362f876..038617d80 100644 --- a/internal/apiserver/metrics_server.go +++ b/internal/apiserver/metrics_server.go @@ -1,3 +1,19 @@ +// Copyright © 2021 Kaleido, Inc. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 apiserver import ( diff --git a/internal/apiserver/server.go b/internal/apiserver/server.go index 9d644e2a0..8da1e1293 100644 --- a/internal/apiserver/server.go +++ b/internal/apiserver/server.go @@ -493,7 +493,7 @@ func (as *apiServer) createAdminMuxRouter(o orchestrator.Orchestrator) *mux.Rout return r } -func (as *apiServer) createMetricsMuxRouter(ctx context.Context) *mux.Router { +func (as *apiServer) createMetricsMuxRouter(_ context.Context) *mux.Router { r := mux.NewRouter() r.Path(config.GetString(config.MetricsPath)).Handler(promhttp.InstrumentMetricHandler(metrics.Registry(), diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go index d5250f320..594d11800 100644 --- a/internal/metrics/metrics.go +++ b/internal/metrics/metrics.go @@ -1,3 +1,19 @@ +// Copyright © 2021 Kaleido, Inc. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 metrics import "github.com/prometheus/client_golang/prometheus"