Finding Custom Metrics
Query Metrics (API method)¶
-
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
pairhttps://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 asButtercup%2C%20Inc%2E
. -
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)¶
-
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.
-
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.