Package: lxd-exporter
lxd-exporterPrometheus exporter for LXDInstallationInstall from sources:python3.8-mvenv/usr/share/python3/lxd-exporter
/usr/share/python3/lxd-exporter/bin/pipinstall-Upipwheel
/usr/share/python3/lxd-exporter/bin/pipinstalllxd-exporter
ln-snf/usr/share/python3/lxd-exporter/bin/lxd-exporter/usr/local/binRun it:/usr/local/bin/lxd-exporterConfigurationFrom command lineusage: lxd-exporter [-h] [--pool-size POOL_SIZE]
                    [--log-level {debug,info,warning,error,critical}]
                    [--log-format {stream,color,json,syslog,plain,journald,rich,rich_tb}]
                    [--lxd-url LXD_URL] [--lxd-server-cert LXD_SERVER_CERT]
                    [--lxd-client-cert LXD_CLIENT_CERT]
                    [--lxd-client-key LXD_CLIENT_KEY]
                    [--http-address HTTP_ADDRESS] [--http-port HTTP_PORT]
                    [--collector-interval COLLECTOR_INTERVAL]
                    [--collector-delay COLLECTOR_DELAY]
                    [--collector-skip-interface COLLECTOR_SKIP_INTERFACE [COLLECTOR_SKIP_INTERFACE ...]]

optional arguments:
  -h, --help            show this help message and exit
  --pool-size POOL_SIZE
                        (default: 4) [ENV: LXD_EXPORTER_POOL_SIZE]

Logging options:
  --log-level {debug,info,warning,error,critical}
                        (default: info) [ENV: LXD_EXPORTER_LOG_LEVEL]
  --log-format {stream,color,json,syslog,plain,journald,rich,rich_tb}
                        (default: color) [ENV: LXD_EXPORTER_LOG_FORMAT]

LXD options:
  --lxd-url LXD_URL     (default: unix:///var/snap/lxd/common/lxd/unix.socket)
                        [ENV: LXD_EXPORTER_LXD_URL]
  --lxd-server-cert LXD_SERVER_CERT
                        [ENV: LXD_EXPORTER_LXD_SERVER_CERT]
  --lxd-client-cert LXD_CLIENT_CERT
                        [ENV: LXD_EXPORTER_LXD_CLIENT_CERT]
  --lxd-client-key LXD_CLIENT_KEY
                        [ENV: LXD_EXPORTER_LXD_CLIENT_KEY]

HTTP server options:
  --http-address HTTP_ADDRESS
                        (default: 127.0.0.1) [ENV: LXD_EXPORTER_HTTP_ADDRESS]
  --http-port HTTP_PORT
                        (default: 8080) [ENV: LXD_EXPORTER_HTTP_PORT]

Collector Service options:
  --collector-interval COLLECTOR_INTERVAL
                        (default: 30) [ENV: LXD_EXPORTER_COLLECTOR_INTERVAL]
  --collector-delay COLLECTOR_DELAY
                        (default: 0) [ENV: LXD_EXPORTER_COLLECTOR_DELAY]
  --collector-skip-interface COLLECTOR_SKIP_INTERFACE [COLLECTOR_SKIP_INTERFACE ...]
                        (default: []) [ENV:
                        LXD_EXPORTER_COLLECTOR_SKIP_INTERFACE]

Default values will based on following configuration files ['~/.config/lxd-
exporter.ini', '/etc/lxd-exporter.ini']. Now 1 files has been applied
['/Users/mosquito/.config/lxd-exporter.ini']. The configuration files is INI-
formatted files where configuration groups is INI sections.See more
https://pypi.org/project/argclass/#configsFrom config fileExample config file:[DEFAULT]pool_size=4[http]address=0.0.0.0port=8123[lxd]url=https://lxd.example.net:8443server_cert=~/.config/lxc/servercerts/example.crtclient_key=~/.config/lxc/client.keyclient_cert=~/.config/lxc/client.crt[collector]delay=1interval=15skip_interface=["docker", "lo"][log]level=infoformat=streamFrom environmentEnvironment VariableDefaultDescriptionLXD_EXPORTER_CONFIG/etc/lxd-exporter.iniRead the configuration from this config file if existsLXD_EXPORTER_COLLECTOR_DELAY0Delay before collector starts gathering infoLXD_EXPORTER_COLLECTOR_INTERVAL30How often collector will gather information from LXD daemonLXD_EXPORTER_COLLECTOR_SKIP_INTERFACE[]List of skipping interface prefixesLXD_EXPORTER_HTTP_ADDRESS127.0.0.1Service listen addressLXD_EXPORTER_HTTP_PORT8080Service listen portLXD_EXPORTER_LOG_LEVELcolor(journaldif available)Logging output format (stream,color,json,syslog,plain,journald,rich,rich_tb)LXD_EXPORTER_LOG_LEVELinfoLogging leveldebug,info,warning,error,fatalLXD_EXPORTER_LXD_CLIENT_CERT-Path to LXD ssl client certificateLXD_EXPORTER_LXD_CLIENT_KEY-Path to LXD ssl client keyLXD_EXPORTER_LXD_SERVER_CERT-Path to LXD server ssl certificateLXD_EXPORTER_LXD_URLunix:///var/snap/lxd/common/lxd/unix.socketLXD endpoint URL, useful when access to LXD daemon via networkLXD_EXPORTER_POOL_SIZE4Thread pool size