Supported telemetry types
The Apache integration supports these telemetry types:Prerequisites
The Apache integration has the following prerequisites:-
Enable the
mod_statusmodule. To confirm that the module is loaded, run: - Make the Apache HTTP Server status endpoint reachable from the Collector.
Configure
To configure the Apache integration, follow these steps:-
Configure Apache HTTP Server to expose status information at
/server-status. Restrict access because the status endpoint can include information about active requests and clients. For example:On Kubernetes, the node Collector is a separate pod onhostNetwork, so Apache sees the node IP, not loopback.Require localreturns403even when the Collector runs on the same node, and the integration health metric reads0. UseRequire all granted, or an explicitRequire iprule for the Collector, on the documented Kubernetes path. On hosts where the Collector runs on the same machine, you can use a tighter Apache authorization rule instead. -
Choose how the Collector finds your Apache HTTP Server instances:
- For pods that expose port
80, add theapp.kubernetes.io/name: apachelabel to the pod template. - For pods or Services that use another port or status URL, provide the status URL through autodiscovery annotations.
- For pods that expose port
-
Optional: Configure static targets as an alternative to autodiscovery. For example,
add the following to the
values.yamlfor your CXDOT Collector Helm chart:A nonemptyendpointslist disables label and annotation discovery for that integration instance. The Collector scrapes only the listed targets. -
Optional: Configure a second integration instance to collect from both discovered
and static targets. For example:
The
apache/statickey defines a named instance for the static targets. The bareapachekey continues to use autodiscovery.
Validate
To validate the Apache integration, follow these steps:-
In the
Live Telemetry Analyzer,
add the following label filters:
- Set Label to
__name__and Value tocxdot.integration.target.health. - Set Label to
cxdot.integration.nameand Value toapache.
1for eachcxdot.integration.target. - Set Label to
-
In
Metrics Explorer,
run the following query while the Apache HTTP Server instances receive traffic:
Confirm that the query returns a value greater than
0for each target.
Disable the Apache integration
To disable the Apache integration, setenabled to false in the values.yaml file:
Configuration reference
Configure one Apache integration instance with the following settings. In Helm values, place these settings underconfig.integrations.apache. In a Collector configuration file, place them
under cxdot.integrations.apache.
Optional settings
-
enabledType:boolean. Optional. Default:true. Whether to enable this Apache integration instance. If true, the Collector runs the instance. If false, the Collector doesn’t run it. -
endpointsType:array of object. Optional. Default:[]. Static Apache targets. A nonempty list disables automatic discovery for this integration instance, and the Collector collects metrics from only the listed targets. Specify a target ashost:portto requesthttp://<host>:<port>/server-status?auto. Specify a full HTTP or HTTPS URL to use a different status path or transport security. The Collector appends?autowhen the URL doesn’t include it. -
endpoints[].endpointType:string. Required. Apache target as eitherhost:portor a full HTTP or HTTPS status URL. -
collection_intervalType:duration. Optional. Default:10s. How often the Collector collects metrics from each Apache target. -
timeoutType:duration. Optional. Default:10s. Maximum time allowed to collect metrics from one Apache target. The value must not exceedcollection_interval. -
disable_keep_alivesType:boolean. Optional. Default:true. Close the scrape connection after each collection instead of holding it open with keep-alive. A held keep-alive connection is parked by the event Multi-Processing Module (MPM) and counted inapache.connections.async{connection_state="keepalive"}, so a persistent scrape connection inflates that value. Set false to reuse one connection across collections. Annotation-discovered endpoints instead take connection persistence from the annotation’spersist_connections,tls_use_host_header,headers, andextra_headersfields. -
tlsType:object. Optional. Transport layer security (TLS) settings for static HTTPS targets. Certificate verification is enabled unlessinsecure_skip_verifyis true. These settings don’t apply to HTTP targets. Discovery annotations can provide target-specific TLS settings. -
tls.ca_fileType:string. Optional. Path to the CA cert. For a client this verifies the server certificate. For a server this verifies client certificates. If empty uses system root CA. (optional) -
tls.ca_pemType:string. Optional. In memory PEM encoded cert. (optional) -
tls.cert_fileType:string. Optional. Path to the TLS cert to use for TLS required connections. (optional) -
tls.cert_pemType:string. Optional. In memory PEM encoded TLS cert to use for TLS required connections. (optional) -
tls.cipher_suitesType:array of string. Optional. CipherSuites is a list of TLS cipher suites that the TLS transport can use. If left blank, a safe default list is used. See https://go.dev/src/crypto/tls/cipher_suites.go for a list of supported cipher suites. -
tls.curve_preferencesType:array of string. Optional. contains the elliptic curves that will be used in an ECDHE handshake, in preference order Defaults to empty list and “crypto/tls” defaults are used, internally. -
tls.include_system_ca_certs_poolType:boolean. Optional. If true, load system CA certificates pool in addition to the certificates configured in this struct. -
tls.insecureType:boolean. Optional. In gRPC and HTTP when set to true, this is used to disable the client transport security. See https://godoc.org/google.golang.org/grpc#WithInsecure for gRPC. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional, default false) -
tls.insecure_skip_verifyType:boolean. Optional. InsecureSkipVerify will enable TLS but not verify the certificate. -
tls.key_fileType:string. Optional. Path to the TLS key to use for TLS required connections. (optional) -
tls.key_pemType:string. Optional. In memory PEM encoded TLS key to use for TLS required connections. (optional) -
tls.max_versionType:string. Optional. MaxVersion sets the maximum TLS version that is acceptable. If not set, refer to crypto/tls for defaults. (optional) -
tls.min_versionType:string. Optional. MinVersion sets the minimum TLS version that is acceptable. If not set, TLS 1.2 will be used. (optional) -
tls.reload_intervalType:duration. Optional. ReloadInterval specifies the duration after which the certificate will be reloaded If not set, it will never be reloaded (optional) -
tls.server_name_overrideType:string. Optional. ServerName requested by client for virtual hosting. This sets the ServerName in the TLSConfig. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional) -
tls.tpmType:object. Optional. Trusted platform module configuration -
tls.tpm.authType:string. Optional. Authorization value for the trusted platform module key. -
tls.tpm.enabledType:boolean. Optional. Whether to use a trusted platform module for the TLS private key. If true, the Collector loads the key from the configured device or socket. If false, the Collector uses the configured key file or in-memory key. -
tls.tpm.owner_authType:string. Optional. Owner authorization value for the trusted platform module. -
tls.tpm.pathType:string. Optional. The path to the TPM device or Unix domain socket. For instance /dev/tpm0 or /dev/tpmrm0.