Skip to content

Commit 7935e02

Browse files
authored
Merge pull request #2046 from kube-logging/chore/unify_axosyslog_metrics_naming_convenction
chore: unify metrics probe keys name in axosyslog
2 parents 5bc0ea2 + b365a6a commit 7935e02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/sdk/logging/model/syslogng/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ log {
251251
log {
252252
parser {
253253
metrics-probe(key("example") labels(
254-
"destination" => "test-syslog-out-global"
254+
"destination_name" => "test-syslog-out-global"
255255
"logging" => "test"
256256
"output_name" => "test-syslog-out-global"
257257
"output_namespace" => "config-test"
@@ -263,7 +263,7 @@ log {
263263
log {
264264
parser {
265265
metrics-probe(key("example") labels(
266-
"destination" => "test-syslog-out"
266+
"destination_name" => "test-syslog-out"
267267
"logging" => "test"
268268
"output_name" => "test-syslog-out"
269269
"output_namespace" => "default"

pkg/sdk/logging/model/syslogng/config/log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func destinationLogPath(dest destination) render.Renderer {
7272
if m.Labels == nil {
7373
m.Labels = make(filter.ArrowMap)
7474
}
75-
if v, ok := m.Labels["destination"]; !ok || v != "" {
75+
if v, ok := m.Labels["destination_name"]; !ok || v != "" {
7676
// syslog-ng terminology for output
77-
m.Labels["destination"] = dest.Name
77+
m.Labels["destination_name"] = dest.Name
7878
}
7979
if v, ok := m.Labels["output_name"]; !ok || v != "" {
8080
// logging-operator terminology for output

0 commit comments

Comments
 (0)