Adding Static Properties to Metric names

The collector adds a minimum number of properties to the metric name. However, in some cases it is desirable to add some properties manually.

In such a case, an extra_properties object may be added to the query definition, containing the extra properties.

Example:

The following metric name came out of a basic configuration of the google-analytics collector:

collector=google_analytics.deviceCategory=mobile
.ver=2.view_id=1234321.what=ga_goal1ConversionRate
.target_type=gauge

The user wanted to add another property environ=test in order to separate this query from a similar query.

{
  "collectors": {
    "google-analytics": {
      "accounts": {
        "company_account": {
          "queries": {
            "test-query": {
              "ver": 2,
              "extra_properties": {
                "environ": "test"
              },
              "other query-related properties....": []
            }
          }
        }
      }
    }
  }
}