vmware_exporter
vmware_exporter copied to clipboard
Provide mecanism for disabling logs altogether or at the very least swtich logging format to JSON
Is there any way to disable the exporter logging, or provide a flag to write the logs in a pseudo standard JSON format, ie.
{"caller":"log.go:168","level":"debug","msg":"Querying namespace","namespace":"pg_replication","ts":"2021-11-04T15:04:15.504Z"}
Thanks in advance
Could you use the docker json log provider? https://docs.docker.com/config/containers/logging/json-file/
I'm running in a Kubernetes cluster and sending all of my logs to Google Cloud Logging. As such it doesn't recognize the format as marks all log events as errors. I'm open to suggestions if you have any.
Ill add this as a feature. You really shouldn't have to hack around things to get a json log.