Monitoring configuration
The monitoring component of Connectivity Gateway (CGW) supports ICMP echoes to the defined endpoints and exposes them through an HTTP endpoint in the Prometheus format.
The component sends pings from the address configured in ipsec.local_ping_endpoint to the address stated in ipsec.remote_ping_endpoint. A service is exposed and scraped automatically by common configured Prometheus instances.
By default, the service is called <release name>-cgw and the metrics are available at
http://<release name>-cgw:9427/metrics.
Configuration parameters
The following configuration parameters are available:
Note
All parameters except ping.target are required.
Multiple ping configurations
If you want to use multiple configurations for the ping target, for example, to use multiple source IP addresses, set up the ping.configuration parameter. See the configuration example:
Use additional labels
You can add additional labels to the configuration. The labels (both source and target) are added to the resulting metrics. The label names must be different between source and target.
See the example of a working configuration:
Caution
Target and source label names must be the same within the configuration. Otherwise, a runtime error occurs.
Even in the case of two different configurations with different source IP address, the labels for source and targets must match. For example, the following configuration is not valid: