Menu
Open source
constants
The constants
object exposes a list of constant values about the system Alloy is running on:
constants.hostname
: The hostname of the machine Alloy is running on.constants.os
: The operating system Alloy is running on.constants.arch
: The architecture of the system Alloy is running on.
Examples
> constants.hostname
"my-hostname"
> constants.os
"linux"
> constants.arch
"amd64"
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video
Optimizing Kubernetes Operations with Grafana Cloud
Join us for an insightful Grafana Cloud webinar dedicated to advanced Kubernetes monitoring techniques.
Video
Incident management with Grafana IRM & SLOS in Grafana Cloud
This webinar shows you how to prioritize critical resources through service level objective(SLO)-driven incident response and management (IRM).