# Account Settings

Contents

* [Account Settings](https://docs.hostedgraphite.com/account-management/account-settings)
  * [Metric Expiry](#metric-expiry)
  * [Tag Expiry](#tag-expiry)
  * [Default Timezone](#default-timezone)
  * [Billing and Invoices](#billing-and-invoices)
  * [Changing Your Account Email](#changing-your-account-email)
  * [Receive Billing Emails to a Different Address](#receive-billing-emails-to-a-different-address)

### [Metric Expiry](#metric-expiry)

If you use a lot of transient metrics generated by spin-up VMs or on-demand instances, you may want to expire these after a period of inactivity to help manage your **total** number of stored metrics.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FqkxaB9oS4SdFzDBcoT5H%2Fmetric-expiry.png?alt=media&#x26;token=b9dee0a7-77c1-4ae8-9add-7a6edf44d5e4" alt=""><figcaption><p>Metric Expiry Example</p></figcaption></figure>

For example, if you set the Expiry Period to 30, any matching metric that hasn’t received data in 30 days will be deleted. The wildcard (`*`) character is greedy, which means it will match **everything** that fits into the given pattern (as opposed to Graphite where it matches only one node level).

For prefixes that are subsets of each other, the more specific name will take priority. So for `foo = 1` and `foo.bar = 5`, `foo` and `foo.baz` and `foo.baz.steve` will be set to 1. `foo.bar`, `foo.bar.baz` and so on will be set to 5.

**Consideration**: Our Expiry feature is not intended for blocking metric patterns from ingestion, rather cleaning up stale metrics that haven't received data for X days.

**NOTE**: You can configure a global expiry rule to target all (`*`) metrics, but if you target a `*specific.metric.pattern*`, the global expiry will be overridden. Additionally, any expired namespaces will be recreated if they are re-sent, and will continue to map to all of their historic data.

### [Tag Expiry](#tag-expiry)

Hosted Graphite supports Expiry Rules for tagged metrics.  Similar to how metric expiry rules work with a few exceptions listed below:

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FSyt890svQxvL0QrCOtjw%2Ftag-expiry.png?alt=media&#x26;token=957a2323-29a7-4c74-9477-fc7fd6759b4d" alt=""><figcaption><p>Tag Expiry Example</p></figcaption></figure>

* Tags have to be the **exact** match to the tag listed on the series.&#x20;
  * EX: `cpu.usage;`**`region`**`=south;`**`server`**`=db-0001`
  * In order to add an expiry rule to the series above,  the tag field will have to be one of the following: **name**, **region**, or **server**.
  * In order to set the rule for the series name: **cpu.usage** set the tag to **name**.
    * This will expire all the series with this name regardless of the tags it is identified by.
  * At the moment only one tag per field is accepted.

* The **value** field does accept **wildcard** characters.

  * For example if you want to expire all series with the prefix cpu then the tag would be **name** and the value would be **cpu.\*** and all these series would expire after the defined period of inactivity:

  `cpu.usage.total;`**`region`**`=south;`**`server`**`=db-0001`

  `cpu.usage.sys;`**`region`**`=east;`**`server`**`=db-0002`

  `cpu.usage.user;`**`region`**`=west;`**`server`**`=db-0001`

* The expiration will be processed by the of time listed.
  * Ex: Suppose you have 2 series:

    `cpu.usage;`**`region`**`=south;`**`server`**`=db-0001`

    `diskspace.available;`**`region`**`=south;`**`server`**`=db-0001`
  * With the following expiry rules:
    * **tag**: name; **value**=cpu.usage -> **2 days**
    * **tag**: server; **value**=db-0001 -> **1 day**
  * This would expire every series with a server of *db-0001* including the ones listed for the first expiry rule. The following day, if the series `diskspace.available` is recreated, then it would expire once more.

### [Default Timezone](#default-timezone)

Setting a default timezone within Hosted Graphite ensures that graphs rendered by Graphite are configured to use that timezone.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2F8A773ptZvYcQuO1yiONw%2Ftimezone-card.png?alt=media&#x26;token=28d20b23-d04a-461c-8b89-04d9c8629f35" alt="" width="563"><figcaption><p>Select Timezone</p></figcaption></figure>

Simply pick the timezone of your choice from the dropdown, and the setting will be automatically saved.

### [Billing and Invoices](#billing-and-invoices)

You can easily manage your billing preferences and settings with our provider, Stripe.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FV43HBHGhliOaDsRizIwg%2Fbilling-card.png?alt=media&#x26;token=349dc36a-7726-450c-a77a-625bab9398f5" alt="" width="563"><figcaption><p>Billing and Invoices</p></figcaption></figure>

### [Changing Your Account Email](#changing-your-account-email)

You can change the email address associated with your Hosted Graphite account by navigating to the [account settings](https://docs.hostedgraphite.com/account-management/account-settings) page, clicking on the **Advanced Options** button at the bottom of the page, and selecting **Enter the new email**.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2F7qx8SjhjlIAevx1aVfFY%2Fadvanced-options-card.png?alt=media&#x26;token=aee2af61-8d95-4c17-89d0-56792a7d78d7" alt="" width="558"><figcaption><p>Change Your Account Email</p></figcaption></figure>

After you fill out the form a confirmation link will be sent to your new email address to verify the change.

If an account already exists with the new email, you’ll need to either rename that one first or contact us to delete it.

### [Receive Billing Emails to a Different Address](#receive-billing-emails-to-a-different-address)

If you would like to receive a copy of billing invoices to an email address that is different from the one primarily used on the account, please contact [support](mailto:support%40hostedgraphite.com).<br>
