# StatsD Agent

StatsD can also be used to pre-aggregate your data before sending it to Hosted Graphite.

You can configure your StatsD instance to send metrics to us by following our [*StatsD docs*](/add-ons-and-integrations-guide/statsd-add-on.md) in our Add-Ons and Integrations Guide.

If you haven’t installed StatsD yet, you might also find the StatsD [installation instructions](https://github.com/statsd/statsd#installation-and-configuration) helpful.

### Hosted StatsD

We also provide a Hosted StatsD solution if you don’t have the luxury of running a server yourself, check out the documentation for [*Hosted StatsD*](/add-ons-and-integrations-guide/statsd-add-on.md#hosted-statsd) to get set up with only a few clicks! Enable Hosted StatsD in your account to forward metrics to our statsd endpoint: statsd.hostedgraphite.com:8125

### Try our Data Views

Like the added counters but not interested in using StatsD? Learn about our [Data Views ](/additional-features/data-views.md)provided for all metrics. While Data Views aren’t direct equivalents to StatsD types, they provide similar ways to work with your data:

* **counters** -> `:sum` (total count), `:sumrate` (per-second rate)
* **gauges** -> `:avg`, `:min`, `:max` (aggregations of reported values)
* **timers** -> `:avg`, `:min`, `:max`, `:95pct`, etc. (distribution-style views)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hostedgraphite.com/agents-guide/statsd-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
