Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cachet-monitor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
cachet-monitor
Commits
35024451
Commit
35024451
authored
10 years ago
by
Matej Kramny
Browse files
Options
Downloads
Patches
Plain Diff
Improve readme, Dockerfile
parent
409d7539
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+6
-0
6 additions, 0 deletions
Dockerfile
readme.md
+62
-4
62 additions, 4 deletions
readme.md
with
68 additions
and
4 deletions
Dockerfile
0 → 100644
+
6
−
0
View file @
35024451
FROM
golang
ADD
. /go/src/github.com/castawaylabs/cachet-monitor
RUN
go
install
github.com/castawaylabs/cachet-monitor
ENTRYPOINT
/go/bin/cachet-monitor
\ No newline at end of file
This diff is collapsed.
Click to expand it.
readme.md
+
62
−
4
View file @
35024451
...
@@ -3,8 +3,59 @@ Cachet Monitor plugin
...
@@ -3,8 +3,59 @@ Cachet Monitor plugin
This is a monitoring plugin for CachetHQ.
This is a monitoring plugin for CachetHQ.
How to run:
Features
-----------
--------
-
[x] Creates & Resolves Incidents
-
[x] Posts monitor lag every second
-
[x] Updates Component to Partial Outage
-
[x] Updates Component to Major Outage if in Partial Outage
-
[x] Can be run on multiple servers and geo regions
Docker Quickstart
-----------------
1.
Create a configuration json
2.
```
docker run -d \
--name cachet-monitor \
-h cachet-monitor \
-v `pwd`/config.json:/etc/cachet-monitor.config.json \
castawaylabs/cachet-monitor
```
Configuration
-------------
```
{
"api_url": "https://demo.cachethq.io/api",
"api_token": "9yMHsdioQosnyVK4iCVR",
"monitors": [
{
"name": "nodegear frontend",
"url": "https://nodegear.io/ping",
"metric_id": 0,
"component_id": 0,
"threshold": 80,
"component_id": null,
"expected_status_code": 200
}
]
}
```
*Notes:*
-
`metric_id`
is optional
-
`component_id`
is optional
-
`threshold`
is a percentage
-
`expected_status_code`
is a http response code
-
GET request will be performed on the
`url`
How to run
----------
Example:
Example:
...
@@ -17,8 +68,15 @@ Production:
...
@@ -17,8 +68,15 @@ Production:
1.
Download the example config and save to
`/etc/cachet-monitor.config.json`
1.
Download the example config and save to
`/etc/cachet-monitor.config.json`
2.
Run in background:
`nohup cachet-monitor 2>&1 > /var/log/cachet-monitor.log &`
2.
Run in background:
`nohup cachet-monitor 2>&1 > /var/log/cachet-monitor.log &`
Environment variables:
```
----------------------
Usage of cachet-monitor:
-c="/etc/cachet-monitor.config.json": Config path
-log="": Log path
-name="": System Name
```
Environment variables
---------------------
| Name | Example Value | Description |
| Name | Example Value | Description |
| ------------ | --------------------------- | --------------------------- |
| ------------ | --------------------------- | --------------------------- |
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment