Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View slash-cyberpunk's full-sized avatar

Vladislav Shishkov slash-cyberpunk

View GitHub Profile
@slash-cyberpunk
slash-cyberpunk / gist:5b9d41a916cc1ee9f4da231af32873b7
Created July 30, 2021 14:37
Bash multiline from file to one line
tr '\n' ',' < requirements.txt | sed 's/,$/\n/'
or
paste -sd ',' requirements.txt
@slash-cyberpunk
slash-cyberpunk / statsd_mapping.conf
Last active July 18, 2022 10:12
Config for stasd_exporter v0.22.7 and airflow 2.3.3
mappings:
- match: "airflow.dag_processing.last_duration.*"
help: "Milliseconds taken to load the given DAG file"
observer_type: summary
name: "airflow_dag_processing_last_duration"
labels:
dag_file: "$1"
- match: "airflow.dagrun.duration.*.*"
help: "Milliseconds taken for a DagRun to reach 'type' state"
observer_type: summary