Код: Выделить всё
org.springframework.boot
spring-boot-starter-actuator
io.micrometer
micrometer-registry-influx
И отредактировал файл application.properties:
Код: Выделить всё
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 ОШИБКА 1448 --- [Mock ] [trics-publisher] i.micrometer.influx.InfluxMeterRegistry: невозможно создать базу данных «mydb»: {"code":"unauthorized","message":"unauthorized access"}
2025-01-15T13:17:11.363+03:00 ОШИБКА 1448 --- [Mock] [trics-publisher] i. micrometer.influx.InfluxMeterRegistry: не удалось отправить метрики в Influx: {"code":"unauthorized","message":"unauthorized access">
2025-01-15T13:17:27.151+03:00 ОШИБКА 1448 --- [Mock] [ionShutdownHook] i.micrometer. influx.InfluxMeterRegistry: невозможно создать базу данных «mydb»: {"code":"unauthorized","message":"unauthorized access"}
2025-01-15T13:17:27.185+03:00 ОШИБКА 1448 --- [Mock] [ionShutdownHook] i.micrometer. influx.InfluxMeterRegistry: не удалось отправить метрики в influx: {"code":"unauthorized","message":"unauthorized access"
Имя пользователя и пароль верны, поэтому у меня две проблемы:
- Почему приложение не может получить доступ к influxdb?
Почему приложение пытается создать БД «mydb», когда в application.properties указано «TSA_Mon_LT»< /li>
Подробнее здесь: https://stackoverflow.com/questions/793 ... o-influxdb
Мобильная версия