[FLINK-36404][Connectors/Prometheus] Improve exception classification and handling (#9)

* Fix exceptions not causing job to fail

* Always handle 403 and 404 responses as fatal errors

* Httpclient exceptions always fatal. Force httpclient to fail when a exception is thrown by the callback Upgrade httpclient version. Fix minor missing parameter validations.

* Refactored response classification, using an enum, and added comments to clarify the callback behaviour
19 files changed
tree: 615362f5ca44989be7baece2e9193eb43b642dfa
  1. .github/
  2. flink-connector-prometheus/
  3. flink-connector-prometheus-request-signer-amp/
  4. tools/
  5. .asf.yaml
  6. .gitignore
  7. LICENSE
  8. NOTICE
  9. pom.xml
  10. README.md
README.md

Apache Flink Prometheus Connector

This repository contains the official Apache Flink Prometheus connector.

Apache Flink

Apache Flink is an open source stream processing framework with powerful stream- and batch-processing capabilities.

Learn more about Flink at https://flink.apache.org/

Modules

This repository contains the following modules

Building the Apache Flink Prometheus Connector from Source

Prerequisites:

  • Unix-like environment (we use Linux, Mac OS X)
  • Git
  • Maven (we recommend version 3.8.6)
  • Java 11
git clone https://github.com/apache/flink-connector-prometheus.git
cd flink-connector-prometheus
mvn clean package -DskipTests

The resulting jars can be found in the target directory of the respective module.

Developing Flink

The Flink committers use IntelliJ IDEA to develop the Flink codebase. We recommend IntelliJ IDEA for developing projects that involve Scala code.

Minimal requirements for an IDE are:

  • Support for Java and Scala (also mixed projects)
  • Support for Maven with Java and Scala

IntelliJ IDEA

The IntelliJ IDE supports Maven out of the box and offers a plugin for Scala development.

Check out our Setting up IntelliJ guide for details.

Support

Don’t hesitate to ask!

Contact the developers and community on the mailing lists if you need any help.

Open an issue if you found a bug in Flink.

Documentation

The documentation of Apache Flink is located on the website: https://flink.apache.org or in the docs/ directory of the source code.

Fork and Contribute

This is an active open-source project. We are always open to people who want to use the system or contribute to it. Contact us if you are looking for implementation tasks that fit your skills. This article describes how to contribute to Apache Flink.

About

Apache Flink is an open source project of The Apache Software Foundation (ASF). The Apache Flink project originated from the Stratosphere research project.