remove metrics collection
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import com.bmuschko.gradle.docker.tasks.container.DockerCreateContainer
|
||||
|
||||
plugins {
|
||||
alias(hlaeja.plugins.kotlin.jvm)
|
||||
alias(hlaeja.plugins.kotlin.spring)
|
||||
@@ -15,7 +13,6 @@ dependencies {
|
||||
implementation(hlaeja.kotlin.logging)
|
||||
implementation(hlaeja.kotlin.reflect)
|
||||
implementation(hlaeja.kotlinx.coroutines)
|
||||
implementation(hlaeja.micrometer.registry.influx)
|
||||
implementation(hlaeja.library.common.messages)
|
||||
implementation(hlaeja.library.jwt)
|
||||
implementation(hlaeja.springboot.starter.actuator)
|
||||
@@ -34,17 +31,6 @@ dependencies {
|
||||
|
||||
group = "ltd.hlaeja"
|
||||
|
||||
fun influxDbToken(): String = config.findOrDefault("influxdb.token", "INFLUXDB_TOKEN", "")
|
||||
|
||||
tasks {
|
||||
named("containerCreate", DockerCreateContainer::class) {
|
||||
withEnvVar("MANAGEMENT_INFLUX_METRICS_EXPORT_TOKEN", influxDbToken())
|
||||
}
|
||||
withType<ProcessResources> {
|
||||
filesMatching("**/application.yml") { filter { it.replace("%INFLUXDB_TOKEN%", influxDbToken()) } }
|
||||
onlyIf { file("src/main/resources/application.yml").exists() }
|
||||
}
|
||||
named("processResources") {
|
||||
dependsOn("copyCertificates")
|
||||
}
|
||||
tasks.named("processResources") {
|
||||
dependsOn("copyCertificates")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user