File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ //go:build !no_datasource_kubernetespodlogs
2+
3+ package modules
4+
5+ import _ "github.com/crowdsecurity/crowdsec/pkg/acquisition/modules/kubernetes" // register the datasource
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func (c *Configuration) SetDefaults() {
7474
7575func (s * Source ) Validate () error {
7676 if s .Config .Selector == "" {
77- return errors .New ("label must be set in kubernetespodlogs acquisition" )
77+ return errors .New ("label must be set in kubernetes acquisition" )
7878 }
7979 if s .Config .Auth != nil && s .Config .KubeConfigFile != "" {
8080 return errors .New ("cannot use both auth and kube_config options" )
Original file line number Diff line number Diff line change 1313 _ types.MetricsProvider = (* Source )(nil )
1414)
1515
16- const ModuleName = "kubernetespodlogs "
16+ const ModuleName = "kubernetes "
1717
1818//nolint:gochecknoinits
1919func init () {
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import (
88
99func (* Source ) GetMetrics () []prometheus.Collector {
1010 return []prometheus.Collector {
11- metrics .KubernetesPodLogsDataSourceLinesRead ,
11+ metrics .KubernetesDataSourceLinesRead ,
1212 }
1313}
1414
1515func (* Source ) GetAggregMetrics () []prometheus.Collector {
1616 return []prometheus.Collector {
17- metrics .KubernetesPodLogsDataSourceLinesRead ,
17+ metrics .KubernetesDataSourceLinesRead ,
1818 }
1919}
Original file line number Diff line number Diff line change 1- package kubernetespodlogs
1+ package kubernetes
22
33import (
44 "errors"
You can’t perform that action at this time.
0 commit comments