Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
Signed-off-by: hfuss <haydenfuss@gmail.com>
  • Loading branch information
onelapahead committed Nov 15, 2021
1 parent b5bf575 commit ec88ca4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
16 changes: 16 additions & 0 deletions internal/apiserver/metrics_server.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
16 changes: 16 additions & 0 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ec88ca4

Please sign in to comment.