vmware_exporter icon indicating copy to clipboard operation
vmware_exporter copied to clipboard

Provide mecanism for disabling logs altogether or at the very least swtich logging format to JSON

Open neuromantik33 opened this issue 3 years ago • 3 comments

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

neuromantik33 avatar Nov 04 '21 15:11 neuromantik33

Could you use the docker json log provider? https://docs.docker.com/config/containers/logging/json-file/

pryorda avatar Nov 08 '21 05:11 pryorda

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.

neuromantik33 avatar Nov 09 '21 18:11 neuromantik33

Ill add this as a feature. You really shouldn't have to hack around things to get a json log.

pryorda avatar Nov 09 '21 21:11 pryorda