-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from ccremer/systemd
Add Systemd unit file to deb/rpm packages
- Loading branch information
Showing
7 changed files
with
115 additions
and
64 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## IP Address to bind to listen for Prometheus scrapes. | ||
BIND_ADDR=:9089 | ||
|
||
## Target URL of Fronius Symo device. | ||
SYMO__URL=http://symo.ip.or.hostname | ||
|
||
## Enable/disable scraping of archive data | ||
# SYMO__ENABLE_ARCHIVE=true | ||
|
||
## Enable/disable scraping of power flow data | ||
# SYMO__ENABLE_POWER_FLOW=true | ||
|
||
## Comma-separated List of "key: value" headers to append to the requests going to Fronius Symo. Example: "authorization=Basic <base64>". | ||
# SYMO__HEADER= | ||
|
||
## Timeout in seconds when collecting metrics from Fronius Symo. Should not be larger than the scrape interval. | ||
# SYMO__TIMEOUT=5 | ||
|
||
## Logging level. | ||
# LOG__LEVEL=info |
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,16 @@ | ||
# This is a systemd unit file | ||
[Unit] | ||
Description=Prometheus Exporter for Fronius Symo Photovoltaics | ||
Documentation=https://github.com/ccremer/fronius-exporter | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
EnvironmentFile=-/etc/default/fronius-exporter | ||
User=65534 | ||
Group=0 | ||
ExecStart=/usr/bin/fronius-exporter | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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