Skip to content

Commit

Permalink
Add prometheus changes to bal template files
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Mar 8, 2024
1 parent 171f4ac commit 9abf968
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
5 changes: 5 additions & 0 deletions idp/idp-domain-service/ballerina/Ballerina.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ groupId = "org.postgresql"
artifactId = "postgresql"
version = "42.2.20"

[[platform.java11.dependency]]
groupId = "io.prometheus.jmx"
artifactId = "jmx_prometheus_javaagent"
version = "0.20.0"

[build-options]
observabilityIncluded = true
18 changes: 17 additions & 1 deletion idp/idp-domain-service/ballerina/Dependencies.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,21 @@ modules = [
{org = "ballerinax", packageName = "postgresql", moduleName = "postgresql"}
]

[[package]]
org = "ballerinax"
name = "prometheus"
version = "0.2.0"
dependencies = [
{org = "ballerina", name = "http"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "observe"},
{org = "ballerina", name = "regex"}
]
modules = [
{org = "ballerinax", packageName = "prometheus", moduleName = "prometheus"}
]

[[package]]
org = "wso2"
name = "idp_domain_service"
Expand All @@ -392,7 +407,8 @@ dependencies = [
{org = "ballerina", name = "url"},
{org = "ballerina", name = "uuid"},
{org = "ballerinai", name = "observe"},
{org = "ballerinax", name = "postgresql"}
{org = "ballerinax", name = "postgresql"},
{org = "ballerinax", name = "prometheus"}
]
modules = [
{org = "wso2", packageName = "idp_domain_service", moduleName = "idp_domain_service"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ groupId = "io.swagger"
artifactId = "swagger-core"
version = "1.6.10"

# transitive dependency of io.prometheus.jmx:jmx_prometheus_javaagent:0.20.0
[[platform.java11.dependency]]
groupId = "io.prometheus.jmx"
artifactId = "jmx_prometheus_javaagent"
version = "0.20.0"

# transitive dependency of io.swagger.parser.v3:swagger-parser:2.1.13
[[platform.java11.dependency]]
groupId = "io.swagger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,18 @@ modules = [
{org = "ballerina", packageName = "uuid", moduleName = "uuid"}
]

[[package]]
org = "ballerinai"
name = "observe"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "observe"}
]
modules = [
{org = "ballerinai", packageName = "observe", moduleName = "observe"}
]

[[package]]
org = "ballerinax"
name = "postgresql"
Expand All @@ -377,6 +389,21 @@ dependencies = [
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerinax"
name = "prometheus"
version = "0.2.0"
dependencies = [
{org = "ballerina", name = "http"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "observe"},
{org = "ballerina", name = "regex"}
]
modules = [
{org = "ballerinax", packageName = "prometheus", moduleName = "prometheus"}
]

[[package]]
org = "wso2"
name = "apk_common_lib"
Expand Down Expand Up @@ -420,6 +447,8 @@ dependencies = [
{org = "ballerina", name = "test"},
{org = "ballerina", name = "url"},
{org = "ballerina", name = "uuid"},
{org = "ballerinai", name = "observe"},
{org = "ballerinax", name = "prometheus"},
{org = "wso2", name = "apk_common_lib"}
]
modules = [
Expand All @@ -432,6 +461,7 @@ modules = [
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.model"},
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.org.wso2.apk.config"},
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.org.wso2.apk.config.api"},
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.org.wso2.apk.config.definitions"},
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.org.wso2.apk.config.model"},
{org = "wso2", packageName = "config_deployer_service", moduleName = "config_deployer_service.partitionClient"}
]
Expand Down

0 comments on commit 9abf968

Please sign in to comment.