sample-ppem-agent.yml
sample-ppem-agent.yml — Sample YAML configuration file for the agent
Overview
This is the sample configuration file for the PPEM agent.
The corresponding configuration file reference contains the detailed parameter descriptions.
Sample Configuration File
# General agent parameters agent: # Core parameters name:unique_agent_nameremote_config:toggle_use_of_remote_configuration# Manager connection parameters manager: url: "http://127.0.0.1:8080" api_key:API_key_for_connecting_to_managerstrict_address_checking: false allowed_addresses: [] # Instance discovery parameters instance: connection_defaults: host: "localhost" port: 5432 database: "postgres" user: "postgres" password: "postgres" password_file:path_to_password_filesslmode: "" sslrootcert: "" sslcert: "" sslkey: "" # Command execution parameters commands: max_workers: 6 timeout: "5h" feedback_interval: "30s" allowed_bindirs: paths: [] # Discovery collectors parameters collectors: timeout: "30m" host: interval: "1m" bindirs: paths: [] agent: interval: "1m" instances: disabled: false interval: "1m" instance_objects: batch_size: 1000 interval: "1m" initial_delay: "0s" jitter_interval: "0s" extended: enabled: true schedule: "" instance_settings: interval: "1m" replication: interval: "10s" # System parameters system: systemd_units_path: "" postgresql_configs_path: "" # Miscellaneous time interval and timeout parameters reconnection_delay: "2s" connect_timeout: "2s" request_timeout: "2s" read_timeout: "30s" write_timeout: "2s" ping_interval: "24s" max_connections: 0 # Logging parameters log: level:logging_levelformat: "json" options: csv_field_delimiter: "," file: path:absolute_path_to_log_filemode:access_mode_of_log_file# HTTP parameters http: server: address: "localhost" port: 8080 tls: cert_file: "" key_file: "" timeout: "10s" security: enabled: false csp_policy: >- default-src 'none'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self'; connect-src 'self'; media-src 'self'; form-action 'self'; base-uri 'self'; frame-ancestors 'none'; frame-src https://postgrespro.com/; object-src 'none' cache_control: "no-store, no-cache, must-revalidate" pragma: "no-cache" expires: 0 frame_options: "" content_type_options: "" permissions_policy: >- accelerometer=(), autoplay=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=() referrer_policy: "strict-origin-when-cross-origin" strict_transport_security: "" cross_origin_embedder_policy:cross_origin_embedder_policy_headercross_origin_opener_policy:cross_origin_opener_policy_headercross_origin_resource_policy:cross_origin_resource_policy_headerclient: timeouts: http: "10s" tls_handshake: "2s" dialer: "2s" response_header: "10s" insecure_skip_verify: false root_ca_files: [] pagination: max_page_size: 100 # JWT session parameters jwt: secret: "secret" lifetime: access: "30m" refresh: "24h" # OpenTelemetry (OTLP) parameters otlp: traces: sampler_ratio: 1.0 exporter: protocol: "" endpoint_url:collector_endpoint_URL_for_exporting_tracestls: insecure_skip_verify: false