mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-19 10:11:01 +02:00
Separate Prom metrics, different processors as different jobs
This commit is contained in:
parent
5e8a1520ee
commit
8c3ac009da
2 changed files with 109 additions and 6 deletions
|
|
@ -14,31 +14,134 @@ scrape_configs:
|
||||||
# The job name is added as a label `job=<job_name>` to any timeseries
|
# The job name is added as a label `job=<job_name>` to any timeseries
|
||||||
# scraped from this config.
|
# scraped from this config.
|
||||||
|
|
||||||
- job_name: 'trustgraph'
|
- job_name: 'pdf-decoder'
|
||||||
|
|
||||||
# Override the global default and scrape targets from this job every
|
|
||||||
# 5 seconds.
|
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'pdf-decoder:8000'
|
- 'pdf-decoder:8000'
|
||||||
|
|
||||||
|
- job_name: 'chunker'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'chunker:8000'
|
- 'chunker:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'vectorize'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'vectorize:8000'
|
- 'vectorize:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'embeddings'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'embeddings:8000'
|
- 'embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'kg-extract-definitions'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'kg-extract-definitions:8000'
|
- 'kg-extract-definitions:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'kg-extract-topics'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'kg-extract-topics:8000'
|
- 'kg-extract-topics:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'kg-extract-relationships'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'kg-extract-relationships:8000'
|
- 'kg-extract-relationships:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'metering'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'metering:8000'
|
- 'metering:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'metering-rag'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'metering-rag:8000'
|
- 'metering-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'store-graph-embeddings'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'store-graph-embeddings:8000'
|
- 'store-graph-embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'store-triples'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'store-triples:8000'
|
- 'store-triples:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'text-completion'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'text-completion:8000'
|
- 'text-completion:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'text-completion-rag'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'text-completion-rag:8000'
|
- 'text-completion-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'graph-rag'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'graph-rag:8000'
|
- 'graph-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'prompt'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'prompt:8000'
|
- 'prompt:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'prompt-rag'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'prompt-rag:8000'
|
- 'prompt-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'query-graph-embeddings'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'query-graph-embeddings:8000'
|
- 'query-graph-embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'query-triples'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'query-triples:8000'
|
- 'query-triples:8000'
|
||||||
|
|
||||||
|
|
||||||
|
- job_name: 'pulsar'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
- 'pulsar:8080'
|
- 'pulsar:8080'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ obj = resp.json()
|
||||||
|
|
||||||
tbl = [
|
tbl = [
|
||||||
[
|
[
|
||||||
m["metric"]["instance"],
|
m["metric"]["job"],
|
||||||
"running" if int(m["value"][1]) > 0 else "down"
|
"running" if int(m["value"][1]) > 0 else "down"
|
||||||
]
|
]
|
||||||
for m in obj["data"]["result"]
|
for m in obj["data"]["result"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue