-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: finalize asset names for Linux (#107)
Finalizes asset names so that all of the following are true: * The published binary is named `alloy-linux-ARCH` * The default config file path (when an installer is used or in Docker) is `/etc/alloy/config.alloy` * The default data storage path (when an installer is used or in Docker) is `/var/lib/alloy/data` * The system package name is `alloy` and it is installed as a service called `alloy`. * When an installer is used, the service runs as a user `alloy` and user group `alloy`. * For RPM installs, the environment file is stored at `/etc/sysconfig/alloy` * For DEB installs, the environment file is stored at `/etc/default/alloy`
- Loading branch information
Showing
11 changed files
with
70 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Sample config for Alloy. | ||
// | ||
// For a full configuration reference, see https://grafana.com/docs/alloy | ||
logging { | ||
level = "warn" | ||
} | ||
|
||
prometheus.exporter.unix "default" { | ||
include_exporter_metrics = true | ||
disable_collectors = ["mdadm"] | ||
} | ||
|
||
prometheus.scrape "default" { | ||
targets = concat( | ||
prometheus.exporter.unix.default.targets, | ||
[{ | ||
// Self-collect metrics | ||
job = "alloy", | ||
__address__ = "127.0.0.1:12345", | ||
}], | ||
) | ||
|
||
forward_to = [ | ||
// TODO: components to forward metrics to (like prometheus.remote_write or | ||
// prometheus.relabel). | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters