---
title: DagsHub integration
source: https://docs.newrelic.com/docs/mlops/integrations/dagshub-mlops-integration
---

DagsHub is a platform for data scientists and machine learning engineers to version and sync their data, models, experiments, and code. It allows you and your team to easily share, review and reuse your work, providing a GitHub-like experience for machine learning. DagsHub is built on popular open-source tools and formats, making it easy to integrate with the tools you already use like New Relic.

New Relic includes a [model performance monitoring](https://docs.newrelic.com/docs/alerts-applied-intelligence/mlops/get-started/intro-mlops/) integration with DagsHub to monitor and analyze your machine learning training metrics in real-time.

## Integrate DagsHub with New Relic [#integrate]

Integrating DagsHub and New Relic enables you to analyze and monitor machine learning training metrics in real-time. You can visualize your metrics in a [New Relic dashboard](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/introduction-dashboards/), create custom metrics, and set [alerts](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/learn-alerts/introduction-alerts/) to notify you of events and incidents happening during your training runs.

In order to receive data from DagsHub into New Relic, you need your account number and a special key which you can obtain as follows:

1.  **Log into your New Relic account**: Go to **[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > +Add more data**.
2.  **Click on DagsHub:** Type DagsHub in the search bar.
3.  **Select the account ID** you want DagsHub to integrate with.
4.  **Create an access token**: Once you've selected an account ID, under **real-time training metrics**, click **Create an API key** . This will be your new telemetry API key. Keep the New Relic page open for future steps.
5.  **Log into the DagsHub portal:** Once you're logged in, select the repository you're working on. Click **Settings**, and select the **integrations** button from the left-hand menu. Click on the **New Relic** tile. To learn how to create a project with real-time experiment monitoring, please read the [DagsHub MLflow documentation page](https://dagshub.com/docs/integration_guide/mlflow_tracking/).
6.  **Copy and paste the token in DagsHub**. Go back to the New Relic integration dashboard and copy the token you created by clicking on the **copy** icon next to the insert key. On the DagsHub's portal, paste the insert key under **New Relic Insight insert key**, and finish by clicking **Next**. The token will be verified, and a confirmation screen will appear.

## View and explore your DagsHub models in New Relic dashboards [#view-explore]

Once you configure the New Relic integration in DagsHub, all the training metrics logged to DagsHub in real time are sent to New Relic.

1.  Go to the **DagsHub integration dashboard**: Once you've tested your tokens and confirmed the integration is set up correctly, return to the New Relic integration dashboard and click on **See your data**. You will be redirected to an automatically generated New Relic dashboard powered by DagsHub.

2.  **Analyze the DagsHub dashboard**: The DagsHub dashboard contains one chart, **Loss metric by repository**, which displays the loss of your models, grouped by their respective repository. It works for any models that you have trained.

    ![Analyze Dagshub dashboard.](https://docs.newrelic.com/images/model-performance-monitoring_screenshot-crop_dasgshub-dashboard.webp "Analyze Dagshub dashboard")

3.  **Display customized metrics**: You can easily customize training metrics coming from DagsHub. For more information on using NRQL and creating queries to track your data, refer to [NRQL reference](https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/).

4.  **Set up alerts notifications**: Once you've created some charts inside a Dashboard(s), you can [get alerted on your data](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/create-edit-or-find-alert-policy/). To create NRQL alerts conditions from a chart, click the **...** chart menu, then click **Create alert condition**. Once you've named and customized your condition, you can add it to an existing policy, or create a new one.

5.  **Get notified**: Once you've created an alerts condition, you can choose how you want to be notified. See our docs on [how to set up notification channels](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/).

You've now successfully integrated New Relic with DagsHub. Newly created alerts are correlated with your New Relic alerts, and you'll see data about newly reported predictions.
