Learn how you can set up VMware Tanzu Observability (formerly known as VMware Aria Operations for Applications) as a Prometheus data source in Grafana.

In addition to setting up and using Tanzu Observability as a Wavefront Query Language data source in Grafana, you can also use Tanzu Observability as a Prometheus data source in Grafana.

When you set up Tanzu Observability as a data source in Grafana, you can view the data stored in Tanzu Observability by using the Grafana GUI.

Set Up Tanzu Observability as a Prometheus Data Source

To set up Tanzu Observability as a PromQL data source in Grafana, you must provide an API Token.

  1. Log in to your Grafana instance.

  2. In the Navigation bar on the left, click Configuration.

  3. Click Add data source and under Time series databases click Prometheus.

  4. In the Name text box, enter a meaningful name of the data source.

  5. Under HTTP, in the URL text box, enter the URL of your product cluster: https://<example>.wavefront.com.

    You can ignore or leave the other settings defaults in this section.

  6. Under Auth make sure to turn the With Credentials option on.

  7. Under Custom HTTP Headers set the following settings:

    1. In the Header text box, enter Authorization as the header name.
    2. In the Value text box, enter Bearer <Your-API-Token>.
  8. Click Save and Test.

How to Use Tanzu Observability as a Prometheus Data Source

To use Tanzu Observability as a PromQL data source, make sure that PromQL support is enabled on your cluster.

You can now test and see that a PromQL query in Tanzu Observability returns the same result as a PromQL query in Grafana when the data source is the Tanzu Observability cluster that you have configured.

  • A PromQL query in Tanzu Observability:

    PromQL query in Wavefront

  • Same PromQL query in Grafana when the data source is the Tanzu Observability cluster that you have just set up.

    PromQL query in Grafana