Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcpratheesh/golang-prometheus-example
A sample code snippet to learn how can connect with prometheus and monitor logs
https://github.com/pcpratheesh/golang-prometheus-example
devops docker docker-compose golang golang-library grafana metrics monitoring prometheus snippets time-series
Last synced: 3 days ago
JSON representation
A sample code snippet to learn how can connect with prometheus and monitor logs
- Host: GitHub
- URL: https://github.com/pcpratheesh/golang-prometheus-example
- Owner: pcpratheesh
- Created: 2022-03-29T09:19:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T12:03:05.000Z (over 2 years ago)
- Last Synced: 2024-06-20T22:31:03.355Z (5 months ago)
- Topics: devops, docker, docker-compose, golang, golang-library, grafana, metrics, monitoring, prometheus, snippets, time-series
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-prometheus-example
A sample code snippet to leanr how can connect with prometheus and monitor logsPrometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.
Prometheus collects and stores its metrics as time series data, i.e. metrics information is stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.Build docker image
```
docker build -t go-prometheus-app .
```You can simply run the following command to up the system as docker containers.
```go
docker-compose up -d
```### Find links here
[Prometheus official site](https://prometheus.io/)
[INSTRUMENTING A GO APPLICATION FOR PROMETHEUS](https://prometheus.io/docs/guides/go-application/)