mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Add a removal note for enable_legacy_mode for GraphiteWriter
refs #4992
This commit is contained in:
parent
31650b0beb
commit
3993276b74
@ -251,6 +251,10 @@ Cache.
|
|||||||
|
|
||||||
#### <a id="graphite-carbon-cache-writer-schema-legacy"></a> Graphite Schema < 2.4
|
#### <a id="graphite-carbon-cache-writer-schema-legacy"></a> Graphite Schema < 2.4
|
||||||
|
|
||||||
|
> **Note**
|
||||||
|
>
|
||||||
|
> This legacy mode will be removed in 2.8.
|
||||||
|
|
||||||
In order to restore the old legacy schema, you'll need to adopt the `GraphiteWriter`
|
In order to restore the old legacy schema, you'll need to adopt the `GraphiteWriter`
|
||||||
configuration:
|
configuration:
|
||||||
|
|
||||||
|
@ -553,7 +553,7 @@ Configuration Attributes:
|
|||||||
service_name_template |**Optional.** Metric prefix for service name. Defaults to "icinga2.$host.name$.services.$service.name$.$service.check_command$".
|
service_name_template |**Optional.** Metric prefix for service name. Defaults to "icinga2.$host.name$.services.$service.name$.$service.check_command$".
|
||||||
enable_send_thresholds | **Optional.** Send additional threshold metrics. Defaults to `false`.
|
enable_send_thresholds | **Optional.** Send additional threshold metrics. Defaults to `false`.
|
||||||
enable_send_metadata | **Optional.** Send additional metadata metrics. Defaults to `false`.
|
enable_send_metadata | **Optional.** Send additional metadata metrics. Defaults to `false`.
|
||||||
enable_legacy_mode | **Optional.** Enable legacy mode for schema < 2.4. **Note**: This will be removed in future versions.
|
enable_legacy_mode | **Optional.** Enable legacy mode for schema < 2.4. **Note**: This will be removed in 2.8.
|
||||||
|
|
||||||
Additional usage examples can be found [here](14-features.md#graphite-carbon-cache-writer).
|
Additional usage examples can be found [here](14-features.md#graphite-carbon-cache-writer).
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ void GraphiteWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
|||||||
|
|
||||||
double ts = cr->GetExecutionEnd();
|
double ts = cr->GetExecutionEnd();
|
||||||
|
|
||||||
/* new mode below. old mode in else tree with 2.4, deprecate it in 2.6 */
|
/* new mode below. old mode in else tree with 2.4, deprecate it in 2.6, remove in 2.8 TODO */
|
||||||
if (!GetEnableLegacyMode()) {
|
if (!GetEnableLegacyMode()) {
|
||||||
if (service) {
|
if (service) {
|
||||||
prefix = MacroProcessor::ResolveMacros(GetServiceNameTemplate(), resolvers, cr, NULL, boost::bind(&GraphiteWriter::EscapeMacroMetric, _1, false));
|
prefix = MacroProcessor::ResolveMacros(GetServiceNameTemplate(), resolvers, cr, NULL, boost::bind(&GraphiteWriter::EscapeMacroMetric, _1, false));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user