You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is "weight" the same as "score" ? A symbol definition object supports both properties 'weight' and 'score', which I believe are synonyms. The terms are often used interchangeably. Is there any distinction in thoughts, discussions, or code?
If this is the same concept, I'll adjust text when it seems the docs imply a distinction. Usually, the doc seems inconsistent, for example with notes like this (contrived example) "here is how to change the weight: score=1; ", and elsewhere, "here is how to change the score: weight=1; ".
--
The definition of "Metrics" doesn't really clarify what a metric is. Is it the same as a "group"?
The weight of rules is defined in metrics. Each metric is a set of grouped rules with specific weights.
The metricsection was deprecated in v1.7 according to the metrics.conf file. Was just the file deprecated? Or does that mean the metric section itself was deprecated, and replaced with actions and groups?
If the term "metric" no longer has a specific meaning, can we remove that term in the docs as well, or at least remove the implication that the term has specific meaning?
The metrics.html page is titled "Rspamd Metrics", and the link from the menu is "Symbols scores and metrics setup", but the word "metric" is only found a few places on the page, not as a keyword. There is a reference to the metric section in this FAQ.
The metrics option is defined in metric_exporter.conf. Is that exporter now deprecated as well? Or has the code been changed, just without a doc change?
This note on "composite weight rules" mentions a metric as a grouping, but doesn't actually explain that:
Composites can record symbols in a metric or record their weights. That could be used to create non-captive composites.
What does it mean by "recording symbols in a metric"?
And what is a "non-captive" composite?
With clarifications, I'll make doc updates.
Thanks
The text was updated successfully, but these errors were encountered:
In my opinion, as we have symbols with dynamic weights(or scores), it would be logical to have distinct terms weight and score: score = weight * multiplier or vice versa. But I am not sure if we can appropriately change properties in configuration files.
The metric section was deprecated in v1.7 according to the metrics.conf file. Was just the file deprecated? Or does that mean the metric section itself was deprecated, and replaced with actions and groups?
Both metric section and metrics.conf file were deprecated and replaced with groups, but they are still supported to maintain configuration compatibility.
If the term "metric" no longer has a specific meaning, can we remove that term in the docs as well, or at least remove the implication that the term has specific meaning?
I think we should remove it everywhere in the docs, but create a section about legacy terms and configuration options and mention it there.
What does it mean by "recording symbols in a metric"?
"record symbols in a metric or record their weights" in other words: "add new symbols or change scores of existing symbols".
And what is a "non-captive" composite?
I guess this mean a composite symbol which can be removed if other composite rule wants to remove it.
Good responses, sincere thanks. Looking for confirmations and actionable decisions so I can make some changes. I'll try to keep changes related to these topics small for easier acceptance/rejection.
Is "weight" the same as "score" ? A symbol definition object supports both properties 'weight' and 'score', which I believe are synonyms. The terms are often used interchangeably. Is there any distinction in thoughts, discussions, or code?
If this is the same concept, I'll adjust text when it seems the docs imply a distinction. Usually, the doc seems inconsistent, for example with notes like this (contrived example) "here is how to change the weight:
score=1;
", and elsewhere, "here is how to change the score:weight=1;
".--
The definition of "Metrics" doesn't really clarify what a metric is. Is it the same as a "group"?
The
metric
section was deprecated in v1.7 according to the metrics.conf file. Was just the file deprecated? Or does that mean themetric
section itself was deprecated, and replaced with actions and groups?If the term "metric" no longer has a specific meaning, can we remove that term in the docs as well, or at least remove the implication that the term has specific meaning?
The metrics.html page is titled "Rspamd Metrics", and the link from the menu is "Symbols scores and metrics setup", but the word "metric" is only found a few places on the page, not as a keyword. There is a reference to the
metric
section in this FAQ.The
metrics
option is defined in metric_exporter.conf. Is that exporter now deprecated as well? Or has the code been changed, just without a doc change?This note on "composite weight rules" mentions a metric as a grouping, but doesn't actually explain that:
What does it mean by "recording symbols in a metric"?
And what is a "non-captive" composite?
With clarifications, I'll make doc updates.
Thanks
The text was updated successfully, but these errors were encountered: