Skip to content

Commit

Permalink
Updated metrics spec
Browse files Browse the repository at this point in the history
  • Loading branch information
psav authored and kylape committed May 7, 2021
1 parent d9eaba5 commit c6a1bf7
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 32 deletions.
8 changes: 2 additions & 6 deletions apis/kafka.strimzi.io/v1beta1/kafka_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"reflect"

apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down Expand Up @@ -5149,11 +5150,6 @@ func (j *KafkaSpecKafkaLogging) UnmarshalJSON(b []byte) error {
return nil
}

// The Prometheus JMX Exporter configuration. See
// https://github.com/prometheus/jmx_exporter for details of the structure of this
// configuration.
type KafkaSpecKafkaMetrics map[string]string

type KafkaSpecKafkaMetricsConfigType string

// Configuration of the Kafka Exporter. Kafka Exporter can provide additional
Expand Down Expand Up @@ -6242,7 +6238,7 @@ type KafkaSpecKafka struct {
// The Prometheus JMX Exporter configuration. See
// https://github.com/prometheus/jmx_exporter for details of the structure of this
// configuration.
Metrics KafkaSpecKafkaMetrics `json:"metrics,omitempty"`
Metrics *apiextensions.JSON `json:"metrics,omitempty"`

// Metrics configuration.
MetricsConfig *KafkaSpecKafkaMetricsConfig `json:"metricsConfig,omitempty"`
Expand Down
28 changes: 3 additions & 25 deletions apis/kafka.strimzi.io/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/RedHatInsights/strimzi-client-go
go 1.13

require (
k8s.io/apiextensions-apiserver v0.19.3
k8s.io/apimachinery v0.19.3
sigs.k8s.io/controller-runtime v0.6.2
)

0 comments on commit c6a1bf7

Please sign in to comment.