api call to get data in shell friendly format · Issue #316 · netdata/netdata · GitHub
Skip to content

api call to get data in shell friendly format #316

Description

@ktsaou

It would be nice to support something like this:

eval "$(curl http://localhost:19999/api/v1/chart=system.cpu&format=shell&after=-600&options=unaligned)"

This should create the variables SYSTEM_CPU_SYSTEM, SYSTEM_CPU_USER, SYSTEM_CPU_WAITIO, etc (one for each dimension of the chart), having the average utilization of the last 600 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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