Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipeaz/go-observability-example
Go Observability example with Prometheus and Grafana
https://github.com/felipeaz/go-observability-example
golang grafana observability prometheus
Last synced: about 1 month ago
JSON representation
Go Observability example with Prometheus and Grafana
- Host: GitHub
- URL: https://github.com/felipeaz/go-observability-example
- Owner: felipeaz
- Created: 2023-04-03T02:03:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T14:08:44.000Z (over 1 year ago)
- Last Synced: 2024-06-21T00:03:26.954Z (8 months ago)
- Topics: golang, grafana, observability, prometheus
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-metrics-example
Go Observability example with Prometheus and GrafanaThis is a simple implementation of an observability layer using Prometheus and Grafana implemented in go.
### Prometheus
Prometheus is the metric collector and it offers few metric options that can be used in specific situations. See https://prometheus.io/docs/concepts/metric_types/ for more details about the metric types.Prometheus works as a pull-based service that will hit /metrics endpoint to retrieve the metrics addressed. We can configure how often it does that under the config yaml file > scrape_interval property.
It also automatically generates Go metrics such as number of goroutines, memory usage etc. All of this through the prometheus go client.### Grafana
Grafana is our dashboard where we integrate with Prometheus and build graphs with that data. With that we can generate useful dashboards that helps identifying outages, annomalies, rps, latency and so on.
![]()