
org.glassfish.jersey.examples.micrometer.MetricsResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-micrometer-webapp Show documentation
Show all versions of jersey-micrometer-webapp Show documentation
Micrometer/Jersey metrics basic example
The newest version!
/*
* Copyright (c) 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.glassfish.jersey.examples.micrometer;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import static org.glassfish.jersey.examples.micrometer.App.WEB_PATH;
@Path("metrics")
public class MetricsResource {
@GET
@Produces("text/html")
public String getMeters() {
return "Gaining measurements for the summary page, try summary. If you want more measurements just refresh this page several times."
+ "";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy