Skip to content

Commit 5317e70

Browse files
committed
cleanup
1 parent 19eca66 commit 5317e70

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

pkg/acquisition/modules/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !no_datasource_kubernetespodlogs
1+
//go:build !no_datasource_kubernetes
22

33
package modules
44

pkg/acquisition/modules/kubernetes/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (s *Source) StreamingAcquisition(ctx context.Context, out chan pipeline.Eve
3030
var wg sync.WaitGroup
3131
var mu sync.Mutex
3232

33-
s.logger.Info("Starting Kubernetes Pod Logs acquisition")
33+
s.logger.Info("Starting Kubernetes acquisition")
3434

3535
cfg, err := s.buildConfig()
3636
if err != nil {
@@ -134,7 +134,7 @@ func (s *Source) podWorker(meta context.Context, cs *kubernetes.Clientset, pod *
134134
l.Process = true
135135
l.Module = s.GetName()
136136
if s.metricsLevel != metrics.AcquisitionMetricsLevelNone {
137-
metrics.KubernetesDatasourceLinesRead.With(prometheus.Labels{"source": source, "acquis_type": l.Labels["type"], "datasource_type": ModuleName}).Inc()
137+
metrics.KubernetesDataSourceLinesRead.With(prometheus.Labels{"source": source, "acquis_type": l.Labels["type"], "datasource_type": ModuleName}).Inc()
138138
}
139139
evt := pipeline.MakeEvent(true, pipeline.LOG, true)
140140
evt.Line = l

pkg/cwversion/component/component.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ package component
88
// Built is a map of all the known components, and whether they are built-in or not.
99
// This is populated as soon as possible by the respective init() functions
1010
var Built = map[string]bool{
11-
"datasource_appsec": false,
12-
"datasource_cloudwatch": false,
13-
"datasource_docker": false,
14-
"datasource_file": false,
15-
"datasource_journalctl": false,
16-
"datasource_k8s-audit": false,
17-
"datasource_kafka": false,
18-
"datasource_kinesis": false,
19-
"datasource_kubernetespodlogs": false,
20-
"datasource_loki": false,
21-
"datasource_s3": false,
22-
"datasource_syslog": false,
23-
"datasource_wineventlog": false,
24-
"datasource_victorialogs": false,
25-
"datasource_http": false,
26-
"cscli_setup": false,
27-
"db_mysql": false,
28-
"db_postgres": false,
29-
"db_sqlite": false,
11+
"datasource_appsec": false,
12+
"datasource_cloudwatch": false,
13+
"datasource_docker": false,
14+
"datasource_file": false,
15+
"datasource_journalctl": false,
16+
"datasource_k8s-audit": false,
17+
"datasource_kafka": false,
18+
"datasource_kinesis": false,
19+
"datasource_kubernetes": false,
20+
"datasource_loki": false,
21+
"datasource_s3": false,
22+
"datasource_syslog": false,
23+
"datasource_wineventlog": false,
24+
"datasource_victorialogs": false,
25+
"datasource_http": false,
26+
"cscli_setup": false,
27+
"db_mysql": false,
28+
"db_postgres": false,
29+
"db_sqlite": false,
3030
}
3131

3232
func Register(name string) {

0 commit comments

Comments
 (0)