Skip to content

Commit

Permalink
made constLabelsFromURL func unexported
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzmitry Pasiukevich committed Jul 19, 2019
1 parent cc81fe7 commit 2d23178
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion collector/cluster_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type ClusterHealth struct {
// NewClusterHealth returns a new Collector exposing ClusterHealth stats.
func NewClusterHealth(logger log.Logger, client *http.Client, url *url.URL) *ClusterHealth {
subsystem := "cluster_health"
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)

return &ClusterHealth{
logger: logger,
Expand Down
2 changes: 1 addition & 1 deletion collector/cluster_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ClusterSettings struct {

// NewClusterSettings defines Cluster Settings Prometheus metrics
func NewClusterSettings(logger log.Logger, client *http.Client, url *url.URL) *ClusterSettings {
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)
return &ClusterSettings{
logger: logger,
client: client,
Expand Down
2 changes: 1 addition & 1 deletion collector/const_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
)

func ConstLabelsFromURL(url *url.URL) prometheus.Labels {
func constLabelsFromURL(url *url.URL) prometheus.Labels {
u := *url
u.User = nil
return map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion collector/indices.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Indices struct {

// NewIndices defines Indices Prometheus metrics
func NewIndices(logger log.Logger, client *http.Client, url *url.URL, shards bool) *Indices {
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)

indexLabels := labels{
keys: func(...string) []string {
Expand Down
2 changes: 1 addition & 1 deletion collector/indices_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type IndicesSettings struct {

// NewIndicesSettings defines Indices Settings Prometheus metrics
func NewIndicesSettings(logger log.Logger, client *http.Client, url *url.URL) *IndicesSettings {
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)
return &IndicesSettings{
logger: logger,
client: client,
Expand Down
2 changes: 1 addition & 1 deletion collector/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ type Nodes struct {

// NewNodes defines Nodes Prometheus metrics
func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, node string) *Nodes {
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)
return &Nodes{
logger: logger,
client: client,
Expand Down
2 changes: 1 addition & 1 deletion collector/snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Snapshots struct {

// NewSnapshots defines Snapshots Prometheus metrics
func NewSnapshots(logger log.Logger, client *http.Client, url *url.URL) *Snapshots {
constLabels := ConstLabelsFromURL(url)
constLabels := constLabelsFromURL(url)
return &Snapshots{
logger: logger,
client: client,
Expand Down

0 comments on commit 2d23178

Please sign in to comment.