---
title: Work with Prometheus metric types
description: Learn how to use Flux to work with Prometheus’ four main metric types (counter, gauge, histogram, and summary) and process them for visualizations in InfluxDB dashboards.
url: https://docs.influxdata.com/flux/v0/prometheus/metric-types/
estimated_tokens: 520
product: Flux
version: v0
---

# Work with Prometheus metric types

Learn how to use Flux to work with the four core [Prometheus metric types](https://prometheus.io/docs/concepts/metric_types/) and process them for visualizations in InfluxDB dashboards:

### [Counter](/flux/v0/prometheus/metric-types/counter/)

Use Flux to query and transform Prometheus **counter** metrics stored in InfluxDB. A counter is a cumulative metric that represents a single [monotonically increasing counter](https://en.wikipedia.org/wiki/Monotonic_function) whose value can only increase or be reset to zero on restart.

### [Gauge](/flux/v0/prometheus/metric-types/gauge/)

Use Flux to query and transform Prometheus **gauge** metrics stored in InfluxDB. A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.

### [Histogram](/flux/v0/prometheus/metric-types/histogram/)

Use Flux to query and transform Prometheus **histogram** metrics stored in InfluxDB. A histogram samples observations (usually things like request durations or response sizes) and counts them in configurable buckets. It also provides a sum of all observed values.

### [Summary](/flux/v0/prometheus/metric-types/summary/)

Use Flux to query and transform Prometheus **summary** metrics stored in InfluxDB. A summary samples observations, e.g. request durations and response sizes. While it also provides a total count of observations and a sum of all observed values, it calculates configurable quantiles over a sliding time window.

#### Related

-   [Prometheus metric types](https://prometheus.io/docs/concepts/metric_types/)

[prometheus](/flux/v0/tags/prometheus/)
