code: public static StatsdConfig createStatsDConfig(MetricsConfig conf) {
          log.info("Configuring stats with statsD at {}:{}", conf.getStatsDHost(), conf.getStatsDPort());
          return new StatsdConfig() {
              @Override
              public Duration step() {
                  return Duration.ofSeconds(conf.getOutputFrequencySeconds().getSeconds());
              }
  
              @Override
              public String prefix() {
                  return conf.getMetricsPrefix();
              }
  
              @Override
              public String host() {
                  return conf.getStatsDHost();
              }
  
              @Override
              public int port() {
                  return conf.getStatsDPort();
              }
  
              @Override
              public StatsdFlavor flavor() {
                  return StatsdFlavor.TELEGRAF;
              }
  
              @Override
              public String get(String key) {
                  return null; // accept the rest of the defaults; see https://micrometer.io/docs/registry/statsD.
              }
          };
      }
docs: Create StatsdConfig for StatsD Register.
  
  @param conf the metric config from Pravega.
  @return instance of StatsdConfig to be used by StatsD Register.