mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
cluster/telemetry: Move topic_normalization redef to zeromq
This commit is contained in:
parent
22958f7cdf
commit
26f5166d7a
2 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,6 @@ export {
|
||||||
## Map to an empty string to skip recording a specific metric
|
## Map to an empty string to skip recording a specific metric
|
||||||
## completely.
|
## completely.
|
||||||
const topic_normalizations: table[pattern] of string = {
|
const topic_normalizations: table[pattern] of string = {
|
||||||
[/^zeek\.cluster\.nodeid\..*/] = "zeek.cluster.nodeid.__normalized__",
|
|
||||||
[/^zeek\/cluster\/nodeid\/.*/] = "zeek/cluster/nodeid/__normalized__",
|
[/^zeek\/cluster\/nodeid\/.*/] = "zeek/cluster/nodeid/__normalized__",
|
||||||
} &ordered &redef;
|
} &ordered &redef;
|
||||||
|
|
||||||
|
|
|
@ -257,6 +257,10 @@ function zeromq_nodeid_topic(id: string): string {
|
||||||
return nodeid_topic_prefix + "." + id + ".";
|
return nodeid_topic_prefix + "." + id + ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
redef Cluster::Telemetry::topic_normalizations += {
|
||||||
|
[/^zeek\.cluster\.nodeid\..*/] = "zeek.cluster.nodeid.__normalized__",
|
||||||
|
};
|
||||||
|
|
||||||
# Unique identifier for this node with some debug information.
|
# Unique identifier for this node with some debug information.
|
||||||
const my_node_id = fmt("zeromq_%s_%s_%s_%s", Cluster::node, gethostname(), getpid(), unique_id("N"));
|
const my_node_id = fmt("zeromq_%s_%s_%s_%s", Cluster::node, gethostname(), getpid(), unique_id("N"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue