Skip to content

Commit

Permalink
fix short flag
Browse files Browse the repository at this point in the history
  • Loading branch information
unfor19 committed Jan 13, 2021
1 parent fbc3c5c commit b686690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/frigga.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def cli(config, ci):
@click.option('--output-file-path', '-o', default='./.metrics.json', show_default=True, required=False, type=str)
# @click.option('--file', '-f', prompt=False, default=".", help="Output metrics.json file to pwd")
def grafana_list(grafana_url, grafana_api_key, output_file_path):
"""Provide Grafana UrL and Grafana API Key (Viewer)\n
"""Provide Grafana URL and Grafana API Key (Viewer)\n
Returns a list of metrics that are used in all dashboards"""
if "http" not in grafana_url:
print_msg(
Expand All @@ -70,7 +70,7 @@ def grafana_list(grafana_url, grafana_api_key, output_file_path):
@click.option('--prom-yaml-path', '-ppath', default='docker-compose/prometheus.yml', prompt=True, required=True, show_default=False, type=str)
@click.option('--metrics-json-path', '-mjpath', default='./.metrics.json', show_default=True, prompt=True, required=False, type=str)
@click.option('--create-backup-file', '-b', is_flag=True, default=True, required=False)
@click.option('--skip-rules-file', '-b', is_flag=True, default=False, required=False)
@click.option('--skip-rules-file', '-sr', is_flag=True, default=False, required=False)
def prometheus_apply(prom_yaml_path, metrics_json_path, create_backup_file, skip_rules_file):
apply_yaml(prom_yaml_path, metrics_json_path,
create_backup_file, skip_rules_file)

0 comments on commit b686690

Please sign in to comment.