Loading...
Notecard Disconnected
Having trouble connecting?

Try changing your USB cable as some cables do not support transferring data. If that does not solve your problem, contact us at support@blues.com and we will get you set up with another tool to communicate with the Notecard.

Advanced Usage

The help command gives more info.

Connect a Notecard
Use USB to connect and start issuing requests from the browser.
Try Notecard Simulator
Experiment with the Notecard's API on a Simulator assigned to your free Notehub account.

Don't have an account? Sign up

What Happens After the Prototype? Explore Blues' Connected Product Guidebook

Blues Developers
What’s New
Resources
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
Button IconHelp
Support DocsNotehub StatusVisit our Forum
Button IconSign In
What’s New
Resources
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
homechevron_rightBlogchevron_rightBuilding Dashboards With the Notehub API and Grafana Cloud

Building Dashboards With the Notehub API and Grafana Cloud

Building Dashboards With the Notehub API and Grafana Cloud banner

April 30, 2026

Learn how to use Grafana Cloud and the Notehub API to build dashboards that visualize your Notehub data.

  • Notehub
TJ VanToll
TJ VanTollPrincipal Developer Advocate
email

In this article I'll show you how to connect Grafana Cloud to the Notehub API and build dashboards that let you explore your project data, monitor devices, and track usage over time.

By the end you'll have a working Grafana dashboard that pulls live data from Notehub and renders it as charts you can share with your team.

Sample Grafana dashboard

What Is Grafana?

Grafana is an open-source observability and analytics platform that lets you query, visualize, and alert on data from virtually any source. It's widely used for graphing time-series metrics, but it also works well with arbitrary JSON APIs, such as the Notehub API.

Grafana Cloud is the hosted version of Grafana. The service has a free tier, and a 14-day trial of unlimited usage to help you explore the platform. You can sign up at grafana.com.

Sign up screen

Once you're in, you'll land in the Grafana UI where you can create dashboards, configure data sources, and build visualizations. The key concept to understand before we dive in is the data source: Grafana typically doesn't store data itself—it fetches it from a source you configure, then renders it. We're going to configure the Notehub API as that source.

Registering the Notehub API as a Data Source

Grafana supports many built-in data source types (Prometheus, MySQL, Elasticsearch, and more), but for RESTful APIs it uses a plugin called Infinity.

To use it, navigate to Connections → Data sources, and click the Add new data source button.

Data source screen in Grafana

On the next screen select the Infinity data source. (There are a lot of data source options so it’s easier to use the filter than scrolling through the full list.)

Infinity data source in Grafana

To configure the data source itself you’ll want to do the following:

  1. Give the data source a Name. In the screenshot below I use "notehub-api-datasource".

  2. Under Authentication, select Bearer Token.

  3. Under Auth details, provide a valid Notehub Personal Access Token.

  4. For Allowed hosts use https://api.notefile.net.

  5. Click Save & test.

If all went well you should should see a Health check successful message, indicating you’re ready to build your first dashboard.

Configuring a Grafana data source for Notehub API usage

Building Your First Dashboard

With the data source connected, let's build a simple dashboard that shows a Notehub Project’s usage data, starting with the Get Events Usage API.

  1. Visit the Dashboards page, and then click the New → New Dashboard button. New dashboard button in Grafana

  2. On your dashboard click the + button to add a panel, and then click Configure visualization. Configuring a visualization

  3. Within the visualization, make the following changes on the Queries tab:

    1. Set the Data source to the Notehub API data source you created in the previous section.
    2. Set the Parser to JSONata.
    3. Set the Format to Time Series.
    4. Set the URL to https://api.notefile.net/v1/projects/{projectUID}/usage/events?period=week&aggregate=project, replacing {projectUID} with the ProjectUID of one of your own Notehub projects.
    5. Under Parsing options & Result fields, set your Rows/Root to data.
    6. While still under Parsing options & Result fields create two columns: period as Time format as Time and total_events as Events format as Number. Query options in Grafana
  4. Backing out, find the pane to the right of your panel. Switch this pane to the All visualizations tab and select Time series. Time series option in Grafana

  5. In Panel options give your panel a Title. Giving a panel a title in Grafana

  6. Change the Time Range at the top of your dashboard. Since this visualization shows weekly data, you’ll want to show a broader time period such as Last 90 days. If all went well you should see weekly event usage data for your project. First chart in Grafana

  7. Make sure to click the Save button in the top-right corner to save your changes.

Once you've built one panel you'll start seeing the potential—data usage, device counts, maps, device-specific data are all easy to visualize using the same approach.

But Grafana can also be overwhelming. And because there’s a lot you can do in visualizations, it also means there are a lot of options to sift through as you’re trying to build charts and graphs.

Luckily though Grafana has a new tool that can help.

Using Grafana's AI Assistant

Grafana has an AI assistant, because it’s 2026 and everyone has an AI assistant now. BUT, I’m here to tell you that Grafana’s AI assistant is good—like, shockingly good.

The assistant can function either as a teacher or an implementer. For example, here some actual questions I asked when writing the previous sections:

What type of data source do I need to create for a JSON API.

It taught me about Infinity data sources.

I can’t remember how to set a visualization to time series. Where is that?

It helped me find the correct pane. I was impressed that the bot knew about locations in the UI.

My panel still shows no data after configuring it, how do I debug the Infinity datasource query?

I had a typo in my URL and it helped me find it.

But where Grafana’s AI assistant gets really powerful is when you have it build and configure complete charts on your behalf. For example, after visualizing event usage I wanted to move onto route usage data. I did so with the following prompt.

Add two new charts to this dashboard. Both should use the Notehub API and this URL https://api.notefile.net/v1/projects/{projectUID}/usage/route-logs?period=week&aggregate=project. The endpoint returns JSON with two members, where route_logs is an array and all I care about. The objects in route_logs have a timestamp named period, a successful_routes integer, and a failed_routes integer. I would like my first chart to show Weekly Successful Routes, and for my second chart to show Weekly Failed Routes.

From trial and error I’ve found that I have to be pretty descriptive about the API itself, which is why I spelled out the URL and the data format of the response. BUT, I didn’t to tell the AI assistant anything about how to make these changes in Grafana, and that saves me a ton of time. In this case both new charts worked for me on my first attempt.

First AI chart in Grafana

I then had the AI clean up the ordering and colors and such.

Group the route charts. Make successful routes use green and failed routes use red.

Second AI chart in Grafana

Overall, I’ve had a lot of fun playing with Grafana’s AI assistant, and have found it to be an easier way of adding complex charts than using Grafana’s UI manually.

Next Steps

You now have a live Grafana Cloud dashboard connected to your Notehub project. From here, there are a dozens of other Notehub APIs you might want to use to create visualizations, but here a few you might want to try:

  • Get Project Devices: Grafana lets you add dropdown filters, and having a list of all your project’s devices is a common way to build dashboards that display device-specific data.

  • Get Project Events: Display event data in your charts. Often used with the deviceUID argument to only return events from a specific device.

  • Get Data Usage: Visualize your project’s cellular or satellite data usage over time.

At Blues we’ve built a lot of fun Grafana charts internally, so if you’re stuck reach out and we should be able to help. (But maybe ask the Grafana AI assistant first 😉)

In This Article

  • What Is Grafana?
  • Registering the Notehub API as a Data Source
  • Building Your First Dashboard
  • Using Grafana's AI Assistant
  • Next Steps

Blues Developer News

The latest IoT news for developers, delivered right to your inbox.

Comments

Join the conversation for this article on our Community Forum

Blues Developer Newsletter

The latest IoT news for developers, delivered right to your inbox.

© 2026 Blues Inc.
© 2026 Blues Inc.
TermsPrivacy