| 1 | --- |
| 2 | title: Instrumenting |
| 3 | weight: 2 |
| 4 | --- |
| 5 | |
| 6 | Four types of metric are offered: Counter, Gauge, Summary and Histogram. |
| 7 | See the documentation on [metric types](http://prometheus.io/docs/concepts/metric_types/) |
| 8 | and [instrumentation best practices](https://prometheus.io/docs/practices/instrumentation/#counter-vs-gauge-summary-vs-histogram) |
| 9 | on how to use them. |
| 10 | |
| 11 | ## Disabling `_created` metrics |
| 12 | |
| 13 | By default counters, histograms, and summaries export an additional series |
| 14 | suffixed with `_created` and a value of the unix timestamp for when the metric |
| 15 | was created. If this information is not helpful, it can be disabled by setting |
| 16 | the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True` or in code: |
| 17 | ```python |
| 18 | from prometheus_client import disable_created_metrics |
| 19 | disable_created_metrics() |
| 20 | ``` |