Код: Выделить всё
org.springframework.boot
spring-boot-starter-actuator
io.micrometer
micrometer-registry-influx
Код: Выделить всё
spring.application.name=Mock
server.port=9090
# SpringBoot Actuator Endpoints configuration
management.endpoints.web.exposure.include=health,info,metrics
management.metrics.export.influx.api-version=v1
management.metrics.export.influx.uri=https://monhost:8086
management.metrics.export.influx.user-name=name
management.metrics.export.influx.password=pass
management.metrics.export.influx.db=TSA_Mon_LT
Код: Выделить всё
2025-01-15T13:17:11.042+03:00 ERROR 1448 --- [Mock] [trics-publisher] i.micrometer.influx.InfluxMeterRegistry : unable to create database 'mydb': {"code":"unauthorized","message":"unauthorized access"}
2025-01-15T13:17:11.363+03:00 ERROR 1448 --- [Mock] [trics-publisher] i.micrometer.influx.InfluxMeterRegistry : failed to send metrics to influx: {"code":"unauthorized","message":"unauthorized access"}
2025-01-15T13:17:27.151+03:00 ERROR 1448 --- [Mock] [ionShutdownHook] i.micrometer.influx.InfluxMeterRegistry : unable to create database 'mydb': {"code":"unauthorized","message":"unauthorized access"}
2025-01-15T13:17:27.185+03:00 ERROR 1448 --- [Mock] [ionShutdownHook] i.micrometer.influx.InfluxMeterRegistry : failed to send metrics to influx: {"code":"unauthorized","message":"unauthorized access"}
- Почему приложение не может получить доступ к influxdb?
- Почему приложение пытается создать БД «mydb», когда в application.properties указано «TSA_Mon_LT»
Подробнее здесь: https://stackoverflow.com/questions/793 ... o-influxdb
Мобильная версия