Struct MetricNameFormatterOption (2.30.0-rc)

Change formatting for metric names.

The default formatter prefixes the name with "workload.googleapis.com/". Note the trailing slash.

See Also

https://cloud.google.com/monitoring/api/v3/naming-conventions for understanding Google's naming conventions. Common prefixes for user metrics are:

  • "workload.googleapis.com/"
  • "custom.googleapis.com/"
  • "external.googleapis.com/user/"

There are many external metrics. A common one is [Prometheus]:

  • "external.googleapis.com/prometheus/"

Type Aliases

Type

Alias Of: std::function< std::string(std::string)>