Skip to content

Commit

Permalink
Merge pull request #158 from NipunaMadhushan/fix-issue-1
Browse files Browse the repository at this point in the history
Remove config for Resource method (/metrics)
  • Loading branch information
keizer619 authored Jun 13, 2024
2 parents 373c943 + 327a44d commit 9245548
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

group=org.ballerinalang
version=0.3.0-SNAPSHOT
version=0.3.1-SNAPSHOT
ballerinaLangVersion=2201.9.0
org.gradle.caching=true
org.gradle.parallel=true
Expand Down
3 changes: 0 additions & 3 deletions prometheus-extension-ballerina/metric_reporter.bal
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ isolated function startReporter(string host, int port) returns error? {
service object {
# This method retrieves all metrics registered in the ballerina metrics registry,
# and reformats based on the expected format by prometheus server.
@http:ResourceConfig {
produces: ["application/text"]
}
resource function get metrics(http:Caller caller) {
observe:Metric?[] metrics = observe:getAllMetrics();
string[] payload = [];
Expand Down

0 comments on commit 9245548

Please sign in to comment.