Alex D.

Results 4 comments of Alex D.

Same trouble systemd unit file: ``` [Unit] Description=PostgreSQL exporter for Prometheus Requires=network-oneline.target After=network-oneline.target [Service] User=telegraf Group=telegraf EnvironmentFile=/etc/sysconfig/postgres_exporter ExecStart=/opt/postgres_exporter/postgres_exporter [Install] WantedBy=multi-user.target ``` EnvironmentFile: ``` DATA_SOURCE_NAME='postgresql://user:[email protected]:5432/postgres?sslmode=disable' PG_EXPORTER_AUTO_DISCOVER_DATABASES=true PG_EXPORTER_EXCLUDE_DATABASES='template0,template1' ``` (it changes nothing...

> > How can i turn on the debug mode ? It's easy enough: ``` #> ./mssql_exporter server -LogLevel Debug -DataSource 'Server=....' ```

I highly likely have come across the same issue. ``` [root@monitoring]# ./mssql_exporter serve -DataSource 'Server=tcp:xx.aa.bb.cc,1433;User ID=stat;Password=SuperDuperSecretPassword;Initial Catalog=master;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=False;Tru stServerCertificate=False;Connection Timeout=1000;' -ServerPort 9444 -LogLevel Debug ``` I see this messages:...

Fix in my case: Change `System.Globalization.Invariant` to **false** in _mssql_exporter.runtimeconfig.json_ ``` { "runtimeOptions": { ... "configProperties": { "System.Globalization.Invariant": false, ... } } } ```