Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Airflow documentation to be more precise #603

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions integrations/airflow/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ app_name_short: Airflow
app_name: Apache {{app_name_short}}
app_site_name: Airflow
app_site_url: https://airflow.apache.org/
exporter_name: the Airflow exporter
exporter_pkg_name: airflow
exporter_name: StatsD
exporter_pkg_name: statsd
exporter_repo_url: https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/metrics.html
additional_prereq_info: |
{{exporter_name}} exposes Prometheus-format metrics automatically; you do not have to
install it separately. To verify that {{exporter_name}} is emitting metrics on the expected
endpoints, set up port-forwarding with the following command:
The official {{app_name_short}} [Helm chart](https://airflow.apache.org/docs/helm-chart/){:class=external}
includes a {{exporter_name}} deployment that exposes Prometheus-format metrics automatically.

To verify that {{exporter_name}} is emitting metrics on the expected endpoints, do the following:

0. Set up port forwarding by using the following command:
<pre class="devsite-click-to-copy">
kubectl -n {{namespace_name}} port-forward deploy/airflow-statsd 9102
kubectl -n {{namespace_name}} port-forward deploy/<var>AIRFLOW_RELEASE_NAME</var>-statsd 9102
</pre>

Access the endpoint `localhost:9102/metrics` by using the browser or curl in another terminal session
to verify that the metrics are being exposed by the exporter for scraping.
0. Access the endpoint `localhost:9102/metrics` by using the browser
or the `curl` utility in another terminal session.
dashboard_available: true
multiple_dashboards: false
dashboard_display_name: {{app_name_short}} Prometheus Overview
Expand All @@ -40,9 +42,9 @@ podmonitoring_config: |
component: statsd
release: airflow
additional_podmonitoring_info: |
Ensure that the values of the `port` and `matchLabels` fields match those of the {{app_name_short}} pods you want to monitor.
The labels and values shown here are set by default when Airflow is deployed with
[Helm](https://airflow.apache.org/docs/helm-chart/){:class=external}.
Ensure that the values of the `port` and `matchLabels` fields match those of the {{exporter_name}} pods you want to monitor.
The labels and values shown here are set by default when {{app_name_short}} is
deployed with [Helm](https://airflow.apache.org/docs/helm-chart/){:class=external}.
sample_promql_query: up{job="airflow", cluster="{{cluster_name}}", namespace="{{namespace_name}}"}
alerts_config: |
apiVersion: monitoring.googleapis.com/v1
Expand Down
Loading