feature: Configured prometheus, improve readme (#31)

This commit is contained in:
Mario Candela
2023-03-31 20:03:42 +02:00
committed by GitHub
parent 5a70e5c900
commit f50f5185df
12 changed files with 584 additions and 37 deletions

View File

@ -2,17 +2,19 @@ package parser
import (
"fmt"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
"io/ioutil"
"os"
"path/filepath"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
)
type BeelzebubCoreConfigurations struct {
Core struct {
Logging Logging `yaml:"logging"`
Tracing Tracing `yaml:"tracing"`
Logging Logging `yaml:"logging"`
Tracing Tracing `yaml:"tracing"`
Prometheus Prometheus `yaml:"prometheus"`
}
}
@ -28,6 +30,11 @@ type Tracing struct {
RabbitMQURI string `yaml:"rabbitMQURI"`
}
type Prometheus struct {
Path string `yaml:"path"`
Port string `yaml:"port"`
}
type Plugin struct {
OpenAPIChatGPTSecretKey string `yaml:"openAPIChatGPTSecretKey"`
}