---
title: "constants | Grafana Agent documentation"
description: "Learn about constants"
---

# constants

The `constants` object exposes a list of constant values about the system Grafana Agent Flow is running on:

- `constants.hostname`: The hostname of the machine Grafana Agent Flow is running on.
- `constants.os`: The operating system Grafana Agent Flow is running on.
- `constants.arch`: The architecture of the system Grafana Agent Flow is running on.

## Examples

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
> constants.hostname
"my-hostname"

> constants.os
"linux"

> constants.arch
"amd64"
```
