Magnolia configuration probes
Magnolia configuration probes collect information about Magnolia configuration properties. They can be used to discover the settings of import Magnolia configuration properties.
Magnolia configuration probes are configured in the instrumentation module.
There are four Magnolia configuration probes:
-
InstanceProbe
-
MagnoliaConfigurationProbe
-
RepositoryProbe
-
ServerConfigurationProbe
All Magnolia configuration probes are configured in the Instrumentation module. Probes should be added in /modules/instrumentation/config/probes
and specify the class property (required) and enabled property (optional). Magnolia configuration probes defined in the instrumentation module are created or modified when the instrumentation module is restarted or changed.
There are common properties for configuration probes, including:
-
class
- the full class name of the instrumentation probe to instantiate, for example,info.magnolia.services.instrumentation.probes.environment
.InstanceProbe. -
enabled
- a flag, either true or false, true indicating the probe is active and collecting metrics and false if not.
Property | Default | Description | ||
---|---|---|---|---|
|
The fully qualified class name of the probe to instantiate.
|
|||
|
|
Flag controlling if the probe is active and can provide measurements ( |
InstanceProbe
The InstanceProbe determines if the Magnolia instance is a public or author instance.
The value of the metric will be:
-
0
if a public instance -
1
if an author instance.
MagnoliaConfigurationProbe
The MagnoliaConfigurationProbe collects Magnolia configuration properties and stores them as labels of the metric.
The value of the metric always will be 1
.
Configuration properties
Property | Description | Required | ||
---|---|---|---|---|
|
Should be |
|||
|
The metric name used by Prometheus. Taken as from the node name when configured. |
|||
|
A description of the metric. |
|||
|
An array of Magnolia properties names, for example The Magnolia property name will be used as the label name, however, the property name may be modified to ensure that the label name is valid. Periods in Magnolia property names will be replaced with "_". For example, the Magnolia property name
|
RepositoryProbe
The RepositoryProbe collects repository configuration properties and stores them as labels of the metric.
The value of the metric always will be 1
.
Configuration properties
Property | Description | Required | ||
---|---|---|---|---|
|
Should be |
|||
|
The metric name used by Prometheus. Taken as from the node name when configured. |
|||
|
A description of the metric. |
|||
|
An array of repository properties names, for example The repository property name will be used as the label name, however, the property name may be modified to ensure that the label name is valid. Periods in repository property names will be replaced with "_". For example, the repository property name
|
ServerConfigurationProbe
The ServerConfigurationProbe collects basic configuration settings of a Magnolia instance.
The following configuration will be collected:
-
the default page extension
-
the default base URL
-
if the instance is a public or author instance
The value of the metric always will be 1 .
|
Configuration properties
Property | Description | Required |
---|---|---|
|
Should be |
|
|
The metric name used by Prometheus. Taken as from the node name when configured. |
|
|
A description of the metric. |
Labels
Label | Metric | Description |
---|---|---|
|
|
The default page extension as configured by the |
|
|
The default base URL as configured by the |
|
|
If the Magnolia is an author instance ( |