alloy
homelab.alloy
| Name | Type | Default | Description |
|---|---|---|---|
alerts. |
boolean | config. |
Whether Grafana alerts on Alloy's scrape targets, and on kernel errors … |
|
Whether Grafana alerts on Alloy's scrape targets, and on kernel errors in the journal while Alloy ships it. Default Declared in |
|||
allowEgress |
list of string | [ ] |
Which services alloy should be allowed access to |
|
Which services alloy should be allowed access to Default Declared in |
|||
enable |
boolean | false |
Whether to enable alloy. |
|
Whether to enable alloy. Default Example Declared in |
|||
logs. |
string | "info" |
The level of a record that has none of its own: no level in the line … |
|
The level of a record that has none of its own: no level in the line and, on the journal, no priority. One of
the names in Default Declared in |
|||
logs. |
boolean | true |
Whether the messages the sources' demote name get their lower level … |
|
Whether the messages the sources' Default Declared in |
|||
logs. |
boolean | false |
Whether to enable shipping the pods' and the journal's logs to Loki; the … |
|
Whether to enable shipping the pods' and the journal's logs to Loki; the Loki module turns it on. Default Example Declared in |
|||
logs. |
attribute set of list of string | { caller = [ "caller"… |
The canonical field names and the raw names formats find them under. |
|
The canonical field names and the raw names formats find them under. These, and only these, become structured
metadata (Alloy seeds an entry's labels into the extracted map, so no catch-all can tell fields from labels);
Default Declared in |
|||
logs. |
attribute set of (submodule) | { } |
Parsers by name. |
|
Parsers by name. This module has the generic ones (logfmt, json, klog, go, golog, plain); a module adds the dialects of its apps next to them. Default Declared in |
|||
logs. |
boolean | false |
Whether to strip ANSI colour codes before parsing. |
|
Whether to strip ANSI colour codes before parsing. Default Declared in |
|||
logs. |
null or (submodule) | null |
How a source's own fields are read from a record of this format: as … |
|
How a source's own Default Declared in |
|||
logs. |
one of "logfmt", "json" | — | How the key-value pairs are written. |
|
How the key-value pairs are written. Declared in |
|||
logs. |
null or string | null |
The extracted value that holds them, or null for the whole line. |
|
The extracted value that holds them, or null for the whole line. Default Declared in |
|||
logs. |
null or string | null |
An RE2 regular expression matching the first line of a record. |
|
An RE2 regular expression matching the first line of a record. Lines that don't match belong to the record before them (a stack trace, a pretty-printed object), up to 500 lines. Null for one record per line. Default Declared in |
|||
logs. |
attribute set of list of string | { } |
Raw levels of this format and the canonical level each means, over … |
|
Raw levels of this format and the canonical level each means, over Default Example Declared in |
|||
logs. |
strings concatenated with "\n" | — | loki.process stages that parse a record. |
|
Declared in |
|||
logs. |
attribute set of (submodule) | { } |
Programs in the journal (SYSLOG_IDENTIFIER, else the command) and the … |
|
Programs in the journal ( Default Declared in |
|||
logs. |
attribute set of (submodule) | { } |
Messages of this source that say nothing worth their level, by name: a … |
|
Messages of this source that say nothing worth their level, by name: a health check, a heartbeat, a line whose
content is all in fields. They get Default Declared in |
|||
logs. |
boolean | config. |
Whether these messages get level. |
|
Whether these messages get Default Declared in |
|||
logs. |
string | — | An RE2 regular expression the whole message matches, after parsing and … |
|
An RE2 regular expression the whole message matches, after parsing and redaction. Declared in |
|||
logs. |
string | "debug" |
The level they get: one of the names in homelab.alloy.logs.levels. |
|
The level they get: one of the names in Default Declared in |
|||
logs. |
list of (submodule) | [ ] |
Lines and the records they must become, run by lib.logs.check. |
|
Lines and the records they must become, run by Default Declared in |
|||
logs. |
list of attribute set of anything | [ ] |
The records Loki must hold afterwards, in order: message, level, and … |
|
The records Loki must hold afterwards, in order: Default Declared in |
|||
logs. |
attribute set of string | { } |
Labels the lines come with, over those of the source (a namespace and … |
|
Labels the lines come with, over those of the source (a Default Declared in |
|||
logs. |
list of string | [ ] |
Lines as the source writes them, in order. |
|
Lines as the source writes them, in order. Default Declared in |
|||
logs. |
attribute set of string | { } |
More fields of this source: raw name to canonical name. |
|
More fields of this source: raw name to canonical name. The canonical name joins the structured metadata only if
Default Declared in |
|||
logs. |
string | — | The name of the format in homelab.alloy.logs.formats. |
|
The name of the format in Declared in |
|||
logs. |
string | name |
The SYSLOG_IDENTIFIER, or the command where a program sets none. |
|
The Default Declared in |
|||
logs. |
null or string | null |
The service_name label, null for the unit without .service, or the … |
|
The Default Declared in |
|||
logs. |
boolean | true |
Whether a record keeps its original text as metadata raw when its … |
|
Whether a record keeps its original text as metadata Default Declared in |
|||
logs. |
attribute set of list of string | { debug = [ "dbg"… |
The canonical levels and the raw levels each stands for, compared … |
|
The canonical levels and the raw levels each stands for, compared lowercased. A record's level is one of these
names, Default Declared in |
|||
logs. |
strings concatenated with "\n" (read-only) | — | The generated loki.process components, read-only: what … |
|
The generated Declared in |
|||
logs. |
attribute set of (submodule) | { } |
Containers and the format of their lines, set by the module that runs … |
|
Containers and the format of their lines, set by the module that runs them. A container no entry names gets a generic format by the look of each line, and no multiline records. Default Declared in |
|||
logs. |
string | name |
The container's name. |
|
The container's name. Default Declared in |
|||
logs. |
null or string | null |
A regular expression (RE2) the container's name matches in full, in … |
|
A regular expression (RE2) the container's name matches in full, in place of Default Declared in |
|||
logs. |
attribute set of (submodule) | { } |
Messages of this source that say nothing worth their level, by name: a … |
|
Messages of this source that say nothing worth their level, by name: a health check, a heartbeat, a line whose
content is all in fields. They get Default Declared in |
|||
logs. |
boolean | config. |
Whether these messages get level. |
|
Whether these messages get Default Declared in |
|||
logs. |
string | — | An RE2 regular expression the whole message matches, after parsing and … |
|
An RE2 regular expression the whole message matches, after parsing and redaction. Declared in |
|||
logs. |
string | "debug" |
The level they get: one of the names in homelab.alloy.logs.levels. |
|
The level they get: one of the names in Default Declared in |
|||
logs. |
list of (submodule) | [ ] |
Lines and the records they must become, run by lib.logs.check. |
|
Lines and the records they must become, run by Default Declared in |
|||
logs. |
list of attribute set of anything | [ ] |
The records Loki must hold afterwards, in order: message, level, and … |
|
The records Loki must hold afterwards, in order: Default Declared in |
|||
logs. |
attribute set of string | { } |
Labels the lines come with, over those of the source (a namespace and … |
|
Labels the lines come with, over those of the source (a Default Declared in |
|||
logs. |
list of string | [ ] |
Lines as the source writes them, in order. |
|
Lines as the source writes them, in order. Default Declared in |
|||
logs. |
attribute set of string | { } |
More fields of this source: raw name to canonical name. |
|
More fields of this source: raw name to canonical name. The canonical name joins the structured metadata only if
Default Declared in |
|||
logs. |
string | — | The name of the format in homelab.alloy.logs.formats. |
|
The name of the format in Declared in |
|||
logs. |
null or string | name |
The pods' namespace, null for any. |
|
The pods' namespace, null for any. Default Declared in |
|||
logs. |
null or string | null |
The program label, null for the container's name or what the format … |
|
The Default Declared in |
|||
logs. |
null or string | null |
The service_name label, null for the pod's app.kubernetes.io/name or … |
|
The Default Declared in |
|||
logs. |
list of string | [ "(?i)[?&](?:api|api_?k… |
Regular expressions (RE2) for secrets in log lines, of pods and the … |
|
Regular expressions (RE2) for secrets in log lines, of pods and the journal alike: each capture group is
replaced with Default Declared in |
|||
logs. |
string | "(removed)" |
What a secret becomes. |
|
What a secret becomes. Default Declared in |
|||
logs. |
strings concatenated with "\n" (read-only) | — | The generated source components, read-only. |
|
The generated source components, read-only. Declared in |
|||
logs. |
string | "http:/ |
Loki's push endpoint. |
|
Loki's push endpoint. Default Declared in |
|||
metrics. |
boolean | true |
Whether Alloy scrapes its own metrics. |
|
Whether Alloy scrapes its own metrics. Default Declared in |
|||
monitors |
attribute set of (submodule) | { } |
What Alloy scrapes, a ServiceMonitor each. |
|
What Alloy scrapes, a ServiceMonitor each. A module with metrics sets its own here (importing this module) and
gets scraped exactly when Alloy is on: no flag per monitor. Every target gets a Default Declared in |
|||
monitors. |
null or string | if podPort != null then… |
The policy name whose cluster.local/<egress>-egress: allow label lets … |
|
The policy name whose Default Declared in |
|||
monitors. |
JSON value | { } |
More of the ServiceMonitor endpoint (scheme, tlsConfig, interval, … |
|
More of the ServiceMonitor endpoint (scheme, tlsConfig, interval, authorization, ...), merged over what the other options make. Default Declared in |
|||
monitors. |
null or string | namespace |
The homelab.kubernetes.submodules instance (a manifest, workload, … |
|
The Default Declared in |
|||
monitors. |
string | name |
The namespace of the Service to scrape. |
|
The namespace of the Service to scrape. Default Declared in |
|||
monitors. |
null or string | null |
The path of the metrics, null for /metrics. |
|
The path of the metrics, null for /metrics. Default Declared in |
|||
monitors. |
boolean | false |
Whether the target is one per node, about the node (node-exporter, … |
|
Whether the target is one per node, about the node (node-exporter, smartctl): Default Declared in |
|||
monitors. |
null or 16 bit unsigned integer; between 0 and 65535 (both inclusive) | null |
The metrics port of the pods behind the Service, as the container has … |
|
The metrics port of the pods behind the Service, as the container has it. Set, the monitor brings a policy
of its own, Default Declared in |
|||
monitors. |
attribute set of string | selector |
Labels of the pods podPort is on, in namespace. |
|
Labels of the pods Default Declared in |
|||
monitors. |
string | "metrics" |
The name of the Service port with the metrics. |
|
The name of the Service port with the metrics. Default Declared in |
|||
monitors. |
attribute set of string | { "app. |
Labels of the Services to scrape. |
|
Labels of the Services to scrape. Default Declared in |
|||
nodeTargets |
attribute set of (submodule) | { } |
Exporters running on the hosts themselves (NixOS services, not pods), … |
|
Exporters running on the hosts themselves (NixOS services, not pods), scraped by the Alloy of each node at its
node's address and this port, with Default Declared in |
|||
nodeTargets. |
16 bit unsigned integer; between 0 and 65535 (both inclusive) | — | The port the exporter listens on, on every node. |
|
The port the exporter listens on, on every node. Declared in |
|||