forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/Flinkmetricsreceiver] Apache Flink Metric Receiver (open-te…
…lemetry#10121) * wip before integration and concurrency * tidy up client names * wip integration test * wip integration test * update to flinkmetrics and integration test * move attributes to resource attributes * add flink integration files * update model import name * add changelog and tidy up * update mod and lint check * update with pr feedback * update pr feedback with status header * unexport process methods * go tidy up * add partial metrics collecting on taskmanager, jobs, and subtasks * go tidy update * fix shadow declaration of err * update pr feedback * tidy up * apply scope version update * make expected responses easier to test when metadata/generated files update * update to host.name and move status table * combine jobmanager and taskmanager metrics * tidy up * update generated files * fix mod version * update pr feedback * tidy up * seperated checkpoint in_progress as non-monotonic sum metric * tidy up local receiver * update version * update cpu descriptions * fix taskmanager/jobs bug and added tests with multiple taskmanagers/jobs * space * change non_heap to nonheap * update unit
- Loading branch information
1 parent
1c30920
commit 1cf0631
Showing
56 changed files
with
14,718 additions
and
1 deletion.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.Common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# FlinkMetrics Receiver | ||
|
||
| Status | | | ||
| ------------------------ | --------- | | ||
| Stability | [alpha] | | ||
| Supported pipeline types | metrics | | ||
| Distributions | [contrib] | | ||
|
||
This receiver uses Flink's [REST API](https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/ops/metrics/#rest-api-integration) to collect Jobmanager, Taskmanager, Job, Task and Operator metrics. | ||
|
||
## Prerequisites | ||
|
||
This receiver supports Apache Flink versions `1.13.6` and `1.14.4`. | ||
|
||
By default, authentication is not required. However, [Flink recommends](https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/security/security-ssl/#external--rest-connectivity) using a “side car proxy” that Binds the REST endpoint to the loopback interface and to start a REST proxy that authenticates and forwards the request to Flink. | ||
|
||
[SSL](https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/security/security-ssl/#external--rest-connectivity) can be enabled with the following REST endpoint [options](https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/security/security-ssl/#rest-endpoints-external-connectivity) for external connectivity and have a self signed certificate or be self signed. | ||
|
||
## Configuration | ||
|
||
The following settings are optional: | ||
|
||
- `endpoint` (default: `http://localhost:15672`): The URL of the node to be monitored. | ||
- `collection_interval` (default = `10s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. | ||
- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. | ||
|
||
### Example Configuration | ||
|
||
```yaml | ||
receivers: | ||
flinkmetrics: | ||
endpoint: http://localhost:8081 | ||
collection_interval: 10s | ||
``` | ||
The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). | ||
## Metrics | ||
Details about the metrics produced by this receiver can be found in [metadata.yaml](./metadata.yaml) | ||
[alpha]: https://github.com/open-telemetry/opentelemetry-collector-contrib#alpha | ||
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib |
Oops, something went wrong.