* Basic metrics working
* Add consumer & producer metrics
* Grafana & Prometheus in docker compose
This commit is contained in:
cybermaggedon 2024-07-18 17:20:42 +01:00 committed by GitHub
parent 33b646eaec
commit 9ab7613e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 888 additions and 327 deletions

35
prometheus/prometheus.yml Normal file
View file

@ -0,0 +1,35 @@
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'trustgraph'
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries
# scraped from this config.
- job_name: 'trustgraph'
# Override the global default and scrape targets from this job every
# 5 seconds.
scrape_interval: 5s
static_configs:
- targets:
- 'pdf-decoder:8000'
- 'chunker:8000'
- 'vectorize:8000'
- 'embeddings:8000'
- 'kg-extract-definitions:8000'
- 'kg-extract-relationships:8000'
- 'vector-write:8000'
- 'graph-write:8000'
- 'llm:8000'
- 'graph-rag:8000'