Jhipster Consoleログとメトリックをjhipsterコンソールに送信するために、jhipsterによって生成されないアプリケーションを設定するにはどうすればよいですか?
他のファイルとMetricsConfiguration、LoggingConfiguration、JhipsterPropertiesを依存関係と共にコピーしようとしました。
私は完全に迷っています。アイデアや洞察力に感謝します。 spring.application.name
、server.port
とeureka.instance.instanceId
:
jhipster:
security:
rememberMe:
# security key (this key should be unique for your application, and kept secret)
key: #placeholder
mail: # specific JHipster mail property, for standard properties see MailProperties
from: [email protected]
baseUrl: http://127.0.0.1:8080
metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
jmx.enabled: true
graphite:
enabled: false
host: localhost
port: 2003
prefix: jhipster
prometheus:
enabled: false
endpoint: /prometheusMetrics
logs: # Reports Dropwizard metrics in the logs
enabled: true
reportFrequency: 60 # in seconds
logging:
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
enabled: true
host: localhost
port: 5000
queueSize: 512
あなたの回答は正しいと思われます。それがうまくいかないことをどのように知っていますか? –