elasticsearch.go 504 B

1234567891011121314151617181920
  1. package elastic
  2. import (
  3. "fmt"
  4. )
  5. const (
  6. ES_URL = "http://es-cn-nif227b580019rgw6.public.elasticsearch.aliyuncs.com:9200" //<1>
  7. ES_USERNAME = "elastic" //<2>
  8. ES_PASSWORD = "hongze@2021" //<3>
  9. //Grafana pwd-> 20521bb9
  10. //Grafana username-> emon
  11. )
  12. type tracelog struct{}
  13. //实现输出
  14. func (tracelog) Printf(format string, v ...interface{}) {
  15. fmt.Printf(format, v...)
  16. }