Implementa un agente financiero que consulta información sobre la inflación en Argentina utilizando OpenAI y herramientas de Wikipedia y Yahoo Finance. Se define un flujo de trabajo en Prefect para gestionar la ejecución y el registro de mensajes enviados al modelo.

This commit is contained in:
2025-10-05 22:00:40 +02:00
commit f1e456ea05
81 changed files with 21591 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
version: '3.9'
services:
otel-collector:
image: otel/opentelemetry-collector-contrib:0.136.0
container_name: otel-collector
command:
- --config=/etc/otel/config.yaml
volumes:
- ./otel-config.yaml:/etc/otel/config.yaml
ports:
- 4317:4317
- 4318:4318
depends_on:
- victoria
- tempo
victoria:
image: victoriametrics/victoria-metrics:latest
container_name: victoria
ports:
- 8428:8428
volumes:
- ./victoria-data:/victoria-metrics-data
command:
- --storageDataPath=/victoria-metrics-data
- --retentionPeriod=3
tempo:
image: grafana/tempo:latest
container_name: tempo
ports:
- 3200:3200
volumes:
- ./tempo-data:/var/tempo
command:
- -config.file=/etc/tempo.yaml
configs:
- source: tempo_config
target: /etc/tempo.yaml
grafana-srv:
image: grafana/grafana-oss:latest
container_name: grafana-srv
ports:
- 33000:3000
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin123
GF_USERS_ALLOW_SIGN_UP: 'false'
depends_on:
- victoria
- tempo
volumes:
- grafana_data:/var/lib/grafana
- ./provisioning/datasources:/etc/grafana/provisioning/datasources
- ./provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana-dashboards:/var/lib/grafana/dashboards
configs:
tempo_config:
content: "\nserver:\n http_listen_port: 3200\n\ndistributor:\n receivers:\n\
otlp:\n protocols:\n grpc:\n endpoint: \"0.0.0.0:4317\"\n http:\n\
\ endpoint: \"0.0.0.0:4318\"\n\ningester:\n trace_idle_period: 10s\n \
\ max_block_bytes: 1000000\n max_block_duration: 5m\n\ncompactor:\n compaction:\n\
block_retention: 24h\n\nstorage:\n trace:\nwal:\n path: /var/tempo/wal\nlocal:\n\
\ path: /var/tempo/blocks\n"
volumes:
grafana_data: {}
@@ -0,0 +1,29 @@
{
"id": null,
"uid": "overview",
"title": "\ud83d\udcca System Overview",
"timezone": "browser",
"panels": [
{
"type": "graph",
"title": "CPU Usage",
"targets": [
{
"expr": "process_cpu_seconds_total",
"legendFormat": "{{instance}}"
}
]
},
{
"type": "table",
"title": "Logs (simulados)",
"targets": [
{
"expr": "up"
}
]
}
],
"schemaVersion": 36,
"version": 1
}
+42
View File
@@ -0,0 +1,42 @@
receivers:
otlp:
protocols:
grpc: {}
http: {}
processors:
batch: {}
exporters:
prometheusremotewrite:
endpoint: http://victoria:8428/api/v1/write
otlp/tempo:
endpoint: http://tempo:4317
tls:
insecure: true
debug:
verbosity: normal
service:
pipelines:
metrics:
receivers:
- otlp
processors:
- batch
exporters:
- prometheusremotewrite
- debug
traces:
receivers:
- otlp
processors:
- batch
exporters:
- otlp/tempo
- debug
logs:
receivers:
- otlp
processors:
- batch
exporters:
- prometheusremotewrite
- debug
@@ -0,0 +1,10 @@
apiVersion: 1
providers:
- name: default
orgId: 1
folder: ''
type: file
disableDeletion: false
updateIntervalSeconds: 10
options:
path: /var/lib/grafana/dashboards
@@ -0,0 +1,11 @@
apiVersion: 1
datasources:
- name: VictoriaMetrics
type: prometheus
access: proxy
url: http://victoria:8428
isDefault: true
- name: Tempo
type: tempo
access: proxy
url: http://tempo:3200
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
田Jpu6