Skip to content

Add --connect-timeout to curl in import-dashboards.sh #411

@mvillmow

Description

@mvillmow

The script now exits loudly on non-2xx, but if Grafana is not running the default curl connection timeout is very long (several minutes on some systems). Adding -m 10 --connect-timeout 5 would make the failure fast and the error message actionable: curl: (7) Failed to connect to localhost port 3000. This matches the behaviour developers would expect from a CLI tool.

Follow-up from #152

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions