code: func (agent *Agent) configureMonitoring(ctx context.Context) error {
  	flags := tsmon.NewFlags()
  	flags.Flush = "manual"
  	flags.Target.AutoGenHostname = true
  	flags.Target.TargetType = "task"
  	flags.Target.TaskJobName = "default"
  	flags.Target.TaskServiceName = "mpagent"
  	return tsmon.InitializeFromFlags(ctx, &flags)
  }
docs: // configureMonitoring configures tsmon monitoring.