Skip to content

Finding Custom Metrics

Query Metrics (API method)

  1. Review the table below for a quick guide on querying metrics and metric metadata via the API (API Reference docs)

    Query URL
    Query metric https://api.<realm>.signalfx.com/v2/metric?query=name:<metricname>
    Query dimension:value pair https://api.<realm>.signalfx.com/v2/dimension?query=<dim>:<val>
    Check if property exists https://api.<realm>.signalfx.com/v2/dimension?query=_exists_:<prop>

    NOTE: The arguments that are passed in the cURL statement must be URL encoded. To find the correct URL encoding, refer to this guide. For example: Buttercup, Inc. is encoded as Buttercup%2C%20Inc%2E.

  2. As an example, try querying the custom metric that you created in the previous section.

    curl -X GET "https://api.<realm>.signalfx.com/v2/metric?query=name:<metricname>" \
        -H "Content-Type: application/json" \
        -H "X-SF-TOKEN: <value>"
    

Metric Finder (UI method)

  1. The other way to find metrics in Splunk Observability is using the Metric Finder. From the left sidebar, navigate to Metric Finder. You can view metrics across your various integrations here, and also search for custom metrics.

    Metric Finder

  2. With the resulting metrics, you can inspect the related properties. Clicking on the metric name will open up a chart for the metric, which you can use to start building out some custom dashboards and alerts.

    Metric Finder search results


Last update: October 18, 2022