All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.prometheus.cloudwatch.HomePageServlet Maven / Gradle / Ivy

package io.prometheus.cloudwatch;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;

public class HomePageServlet extends HttpServlet {
  private static final long serialVersionUID = 3239704246954810347L;

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    resp.setContentType("text/html");
    try {
      resp.getWriter()
          .print(
              "\n"
                  + "CloudWatch Exporter\n"
                  + "\n"
                  + "

CloudWatch Exporter

\n" + "

Metrics

\n" + "\n" + ""); } catch (IOException e) { // Ignored } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy