Sky-meter is an endpoint checker. it gives you the ability to monitor your internal-cluster APIs
792
Sky-meter is a synthetic endpoint checker. You can deploy this on your infra and run checks from your infa and set alerts. Here we are using the go httptrace library.
Currenly we have addded Database support. The endpoints and http output are now being saved in Database. We also have a sentry integration to catch the runtime errors.
Development is in progress
We have integrated SMTP and Opsgenie, more integrations are in pipeline Currently the project is under developmet. You may have to experience some glitches at this moment.
GO version: 1.18
Postgres : 15.0
We are highly recommending to run th app as docker container. See Docker Hub Image https://hub.docker.com/r/soorajsky/sky-meter
Currenly we have two environment variables.
To add a URL to minitoring is pertty simple. Create settings.yml to add your endpoints to monitor. See an example of settings.yml below
opegenie:
- enabled: false
email:
- enabled: true
server: smtp.gmail.com
port: 587
sender: [email protected]
groups:
- name: prod
emails:
- [email protected]
- [email protected]
- name: dev
emails:
- [email protected]
- [email protected]
domains:
- name: https://skywalks.in
enabled: true
timeout: 10
skip_ssl: false
frequency: 10
group: dev
- name: https://sky-meter.skywalks.in
enabled: true
timeout: 10
skip_ssl: false
frequency: 60
group: dev
- name: https://github.com
enabled: true
timeout: 10
skip_ssl: false
frequency: 60
group: prod
- name: https://githcccubs.com
enabled: true
timeout: 10
skip_ssl: false
frequency: 60
group: prod
timeout : Timeout of request in Millisecond (int)
skip_ssl : set flase if you want to skip the ssl verification (bool)
frequency : frequency of health check in secont (int)
group : Group settings
Clone the code
$ git clone https://github.com/sooraj-sky/sky-meter.git
$ cd sky-meter
Run the postgres docker container
$ docker-compose up -d
Added Env Option: You can enable sentry by adding
Export sentry dsn
$ export mode="dev"
$ export sentry_dsn="<yourDsnHere>"
Export the port
$ export PORT=8080
Export opsgenieSecret
$ export opsgeniesecret="your-opsgenie-api-keyhere"
Export email passsword
export emailpass="your-email-pass-here"
Run the project
$ go run cmd/main.go
we are using concourse CI for Main Branch
For release branch we have Github Actions
For release branch we have Github Actions
docker run -p 8080:8080 sky-meter
Repo : https://github.com/sooraj-sky/sky-meter.git
curl localhost:8080/stats to see the results
Content type
Image
Digest
sha256:0c1bbee52…
Size
14.6 MB
Last updated
almost 4 years ago
docker pull soorajsky/sky-meter