Field | Default | Details |
|---|---|---|
apiVersion | fep.fujitsu.io/v1 | Mandatory as it is |
kind | FEPExporter | Mandatory as it is |
metadata.name | fep-monitor | Name of FEPExporter CR - must be unique in namespace |
metadata.namespace | fep-ns | Namespace - OCP populates it as current |
spec.prometheus | Optional Prometheus MTLS spec section | |
spec.prometheus.tls | ||
spec.prometheus.tls.certificateName | Optional This points to Kubernetes TLS secret that contains the certificate of Prometheus ServiceMonitor. FEPExporter will use this for certificate authentication. The certificate itself is stored in the key tls.crt. | |
spec.prometheus.tls.caName | Optional | |
spec.fep.remoteLogging.enable | Set to true to forward logs from fluentbit to fluentd | |
spec.fep.remoteLogging.image | Optional Fluentbit image to be used. If not specified, Operator will use the latest version that is supported by the Operator. | |
spec.fep.remoteLogging.pullPolicy | IfNotPresent | Optional |
spec.fepExporter. | Exporter spec section | |
spec.fepExporter.authSecret | Optional Base Authentication secret to provide username & encrypted password of user | |
spec.fepExporter.authSecret.secretName | Secret name | |
spec.fepExporter.authSecret.userKey | Key of username in specified secret | |
spec.fepExporter.authSecret.passwordKey | Key of password in specified secret | |
spec.fepExporter.customLabel | Custom label to be added to Prometheus ServiceMonitor | |
spec.fepExporter.tls | FEPExporter MTLS specs | |
spec.fepExporter.tls.certificateName | Optional This point to Kubernetes TLS secret that contains the certificate of FepExporter. Prometheus will use this for certificate authentication. The certificate itself is stored in the key tls.crt. | |
spec.fepExporter.tls.caName | Optional This points to Kubernetes configmap that contains additional CA the client use to verify a server certificate. The CA is stored in the key ca.crt. | |
spec.fepExporter.option.measurement.recallForVector.enable | false | Optional true: Enables the repeatability measurement feature. |
spec.fepExporter.option.measurement.recallForVector.alertThreshold | 0 | Optional If the recall falls below this threshold, an alert is issued to the AlertManager. The value can be between 0 and 1. If 0 is specified, no alert is created. |
spec.fepExporter.disableDefaultQueries | false | Optional Not defined or set to false => Create default queries Defined and set to true => Do not create default queries. |
spec.fepExporter.disableDefaultAlertRules | false | Optional Not defined or set to false => Create default alert rules Defined and set to true => Do not create default alert rules. If Default queries are disabled => Do not create default alert rule. |
spec.fepExporter.exporterLogLevel | error | Set logging level: one of debug, info, warn, error |
spec.fepExporter.fepClusterList | Array of FEPCluster to monitor | |
spec.fepExporter.image.image | quay.io/fujitsu/fujitsu-enterprise-postgres-exporter:ubi9-18-1.0 Optional | |
spec.fepExporter.image.pullPolicy | IfNotPresent | Always or IfNotPresent |
spec.fepExporter.mcSpec.limits | cpu: 500m memory: 700Mi | Max CPU allocated to exporter container Max memory allocated to exporter container |
spec.fepExporter.mcSpec.requests | cpu: 200m memory: 512Mi | CPU allocation at start for exporter container memory allocation at start for exporter container |
spec.fepExporter.scrapeInterval | 30s | Optional |
spec.fepExporter.scrapeTimeout | 30s | Optional This parameter may be specified to change statistics scraping timeout. If specified, Prometheus will wait for FEPExporter for maximum this given period to return statistics. |
spec.fepExporter.sysExtraLogging | true | To turn on extra debugging messages for operator, set value to true |
spec.fepExporter.sysExtraEvent | Optional. To turn on event notification for custom resource changes, set the value to true. Can be turned on or off at any time. | |
spec.fepExporter.restartRequired | false | true: To restart FEPExporter, when there is any change found in CR or FEPCluster false: Will not restart FEPExporter |
spec.fepExporter.userCustomQueries | Optional Section | |
spec.fepExporter.fepExporterGlobalEnvSec | Specifies the name of a Kubernetes secret that contains key/value pairs common to all containers running in the FEPExporter definition. When FEPCluster automatically creates a FEPExporter, it is copied from FEPCluster. | |
spec.fepExporter.fepExporterEnvSec | Specifies the name of the Kubernetes secret that contains key-value pairs specific to the prometheus-fep-exporter container. When FEPCluster automatically creates a FEPExporter, it is copied from FEPCluster. |
usr_example:
query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp())) as lag"
master: true
metrics:
- lag:
usage: "GAUGE"
description: "Replication lag behind master in seconds"