Skip to content

charlesgong/alert-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Assignment description

collector includes 4. alert

Alert Metrics

Query from Promethues, and log alert information when reached the rule limit.

Dependencies check, please refer https://github.com/charlesgong/metrics-service

Getting Start

go version 1.22.0

In our Go project, we just need to import the dependent library.

go mod download

Attach suitable metrics to relevant functions to evaluate the performance of the scope. Check example code here.

Step One

Start the server to collect the metrics.

go run main.go

and it will query Prometheus metrics itself

Step Two

Server metrics need to be collected and visualized to analyze the data. Prometheus and Grafana need to be started and configured along with Docker.

Docker Setup

Install Docker with Docker Compose. Check out here

docker build --tag [image_name] .

Then initiate the Docker Compose by using the following command,

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published