-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
provisioning/roles/sp_mini_7_setup_init/files/snowplow-report.service
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 @@ | ||
[Unit] | ||
Description=Runs Snowplow Report service sending mini status metrics | ||
Wants=snowplow-report.timer | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/docker compose -f /home/ubuntu/snowplow/docker-compose.yml ps | ||
# FIXME | ||
# Inspect docker compose for services | ||
# Report restarts | ||
# Report errors | ||
# Check OpenSearch for number of events both good and bad | ||
# Check whether collector is accessible | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
10 changes: 10 additions & 0 deletions
10
provisioning/roles/sp_mini_7_setup_init/files/snowplow-report.timer
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,10 @@ | ||
[Unit] | ||
Description=Starts Snowplow Report timer sending mini status metrics | ||
Requires=snowlow-report.service | ||
|
||
[Timer] | ||
Unit=snowlow-report.service | ||
OnCalendar=*:0/01:00 | ||
|
||
[Install] | ||
WantedBy=timers.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