-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker, apache conf : use agent command, add agent.sample.yml and fix…
… conf
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# agent.yml | ||
|
||
# We need to tell Pinger to run the agent in standalone mode since the | ||
# default behaviour is something else. | ||
standalone: true | ||
|
||
# Configuration for where metrics are stored. | ||
metrics: | ||
backend: timescale | ||
host: timescale | ||
port: 5432 | ||
username: postgres | ||
password: password | ||
db_name: pinger | ||
ssl_mode: false # Let's just keep it off for now | ||
page: | ||
deploy: true | ||
allowed_origins: ["*"] # For now allow every origin | ||
name: My Status Page | ||
|
||
# Interval after which metrics are logged into database. | ||
interval: 5s | ||
|
||
checks: | ||
- id: ping-google # unique ID | ||
name: Ping Google # human-readable name | ||
interval: 5s # Ping every 5 seconds | ||
timeout: 0.5s # Timeout if it takes longer than half a second | ||
input: | ||
type: HTTP # Protocol | ||
output: | ||
type: TIMEOUT # Condition for success/failure | ||
target: # Target to hit/request | ||
type: URL | ||
value: http://www.google.com/ |
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