epoch8 / airflow-exporter

Airflow plugin to export dag and task based metrics to Prometheus.
Other
240 stars 75 forks source link

installation #63

Closed continuum-akshay-jadhav closed 4 years ago

continuum-akshay-jadhav commented 4 years ago

Hi All,

Can someone let me know how to use this repo.

I cloned the code on my target machine on which airflow container is present and did pip install,

but could not get metrics as their was no endpoint created when i ran netstat -tulpn command.

Thanks.

elephantum commented 4 years ago

You need to do pip install inside the airflow container.

continuum-akshay-jadhav commented 4 years ago

Also do i need to only move airflow_exporter folder into the container or all the code from Repo.

Also let me know where in the container should i place the code.

Thank you so much

elephantum commented 4 years ago

You do not need repo at all. Latest version of exporter is published to pypi.

Just do pip install

continuum-akshay-jadhav commented 4 years ago

Thank you @elephantum ,

I have included a docker command pip install airflow-exporter in my docker file.. Hope it works

elephantum commented 4 years ago

@continuum-akshay-jadhav I will close this issue for now. Reopen if you have problems.

continuum-akshay-jadhav commented 4 years ago

Hi @elephantum ,

I tried pip install in my container but now my container is getting restarted always