question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[frontend] No metrics shown in Run Output tab

See original GitHub issue

Environment

  • How did you deploy Kubeflow Pipelines (KFP)? I installed it with the full kubeflow deployment. Kubeflow 1.6, installed with juju
  • KFP version: build version dev_local (this shows on bottom of KFP UI left sidenav)

Steps to reproduce

Running this minimal pipeline that just saves a metrics

from kfp.components import OutputPath, create_component_from_func
import kfp.dsl as dsl
import kfp


@dsl.pipeline(
    name='kubeflow-metric-demo')
def metric_pipeline():
    produce_metrics_op = create_component_from_func(
        produce_metrics,
        base_image='python:3.7',
        packages_to_install=[],
        output_component_file='component.yaml',
    )
    produce_metrics_op()


def produce_metrics(
    mlpipeline_metrics_path: OutputPath('Metrics')
):
    import json

    metrics = {
        'metrics': [{
            'name': 'accuracy',
            'numberValue':  0.9,
            'format': "RAW"
        }]
    }
    with open(mlpipeline_metrics_path, 'w') as f:
        json.dump(metrics, f)
    print("metrics path")
    print(mlpipeline_metrics_path)


if __name__ == "__main__":
    kfp.compiler.Compiler().compile(metric_pipeline, 'metric_pipeline.yaml')

Expected result

I expect the metrics to be shown in the “Run output” tab in the UI. However, nothing is there as you can see in the image. Screen Shot 2022-10-12 at 3 03 14 PM

However, the metrics did show up at the “output artifacts” section of the component Screen Shot 2022-10-12 at 3 07 34 PM

Materials and Reference


Impacted by this bug? Give it a 👍.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Lejboellecommented, Oct 13, 2022

This has been fixed in the recent patch release https://github.com/kubeflow/manifests/releases/tag/v1.6.1

0reactions
CheaterAdamscommented, Nov 29, 2022

Hi @Kokkini, does your comment regarding platform agnostic Kubeflow 1.6.1 imply the fix is provided in 1.6.1? I am still looking for a solution using KPF 1.8.16.

Read more comments on GitHub >

github_iconTop Results From Across the Web

v2 metrics visualization #5668 - kubeflow/pipelines - GitHub
components can output metrics artifacts that are rendered in UI. ... scalar metric (no need to support showing scalar metrics in run list ......
Read more >
Front-End Performance 2021: Planning And Metrics
Run performance experiments and measure outcomes — both on mobile and on desktop (for example, with Google Analytics). It will help you build...
Read more >
Troubleshooting PCF Metrics - VMware Docs
Metrics stop appearing on the UI. When you run cf metrics-ingestor logs , you see the following entry in the Ingestor logs:
Read more >
Troubleshooting Managed Service for Prometheus
In the Monitoring navigation pane, click Metrics Explorer. Select the PromQL tab. Click Run Query.
Read more >
Troubleshoot no data in Application Insights for .NET - Azure
This article provides troubleshooting information to help resolve issues when data is missing or doesn't appear when you're using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found