Hi,
I have a question about visualizing results in the KubeFlow’s Pipeline UI using TFX KubeflowDAGRunner.
Currently, after each component ended, TFX writes the results into the mlpipeline_ui_metadata.json, regardless of whether this file already exists.
(_dump_ui_metadata function in the entry point of KubeflowDAGRunner: tfx/container_entrypoint.py at 278ec3bd300f41617a980ab06f11402124edb874 · tensorflow/tfx · GitHub)
The default visualizations are very helpful, but I want to extend them for my custom components’ results.
Is there any way to visualize custom components’ results in the Pipeline UI?
Related issue:
  

      github.com/tensorflow/tfx
  

  
    
  
	  
  

  
    
      Customizing `mlpipeline_ui_metadata.json` 1
    

    
      
        opened 
        
          
        
        May 13, 2021
      
      


      
        
          
          jeongukjae
        
      
    

    
        
          type:feature
        
        
          stat:awaiting tensorflower
        
    
  


  
    **System information**

- TFX Version (you are using): 0.29
- Environment in …which you plan to use the feature (e.g., Local
  (Linux/MacOS/Windows), Interactive Notebook, Google Cloud, etc..): Google Cloud
- Are you willing to contribute it (Yes/No): Yes

**Describe the feature and the current behavior/state.**

https://github.com/tensorflow/tfx/blob/79fa0d8adce177d04feaa737f1440689344521df/tfx/orchestration/kubeflow/container_entrypoint.py#L210-L296

For now, `_dump_ui_metadata` function in `tfx/orchestration/kubeflow/container_entrypoint.py` does not consider already existing `/mlpipeline-ui-metadata.json`. So if I write some metadata that I want to see in KubeFlow UI in a custom component, the file will be overwritten.

If `/mlpipeline-ui-metadata.json` already exists(maybe created in the component) and has a valid format, I think extending an existing file is better.

**Will this change the current API? How?**

No

**Who will benefit with this feature?**

**Do you have a workaround or are completely blocked by this?** :

**Name of your Organization (Optional)**

**Any Other info.**
  

  

  
    
    
  

  


Thanks