https://github.com/sefikcan/kanbersky.monitoring
This project was created to test metric tools in .net 6.
https://github.com/sefikcan/kanbersky.monitoring
docker docker-compose dotnet-core grafana prometheus
Last synced: 3 months ago
JSON representation
This project was created to test metric tools in .net 6.
- Host: GitHub
- URL: https://github.com/sefikcan/kanbersky.monitoring
- Owner: Sefikcan
- Created: 2021-12-31T11:39:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T10:48:53.000Z (over 4 years ago)
- Last Synced: 2025-06-30T16:49:09.661Z (12 months ago)
- Topics: docker, docker-compose, dotnet-core, grafana, prometheus
- Language: C#
- Homepage:
- Size: 1.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kanbersky.Monitoring
This project was created to test metric tools in .net 6.
# Project Article-TR
https://sefikcankanber.medium.com/grafana-ve-prometheus-kullanarak-asp-net-core-projelerini-nas%C4%B1l-monit%C3%B6r-edebiliriz-f6a0777336e9
# Project Notes - EN
- Prometheus is an open-source monitoring application. It scrapes HTTP endpoints to collect metrics exposed in a simple text format.
- For example, your web app might expose a metric like
```
http_server_requests_seconds_count{exception="None", method="GET",outcome="SUCCESS",status="200",uri="api/v1/hc"} 123
```
which means that the endpoint /api/v1/hc was successfully queried 123 times via a GET request.
- Prometheus can also create alerts if a metric exceeds a threshold, e.g. if your endpoint returned more than one-hundred times the status code 500 in the last 5 minutes.
- To set up Prometheus, we create three files:
- prometheus/prometheus.yml — the actual Prometheus configuration
- prometheus/alert.yml — alerts you want Prometheus to check
- docker-compose.yml
- Grafana is a tool to create rich dashboards from your metrics.
- Grafana can ingest from many different data sources, including Prometheus.
- Grafana can work without any configuration files.
- However, we want to configure Prometheus as a data source, so we create prometheus_ds.yml file. This configuration file will tell Grafana about Prometheus. You could omit this and add the configuration via the Grafana UI.
```
datasources:
- name: Prometheus
access: proxy
type: prometheus
url: http://prometheus:9090
isDefault: true
```
- The Alertmanager sends alerts to various channels like Slack or E-Mail.
- You can use the Alertmanager to silence and group alerts as well.