Exemplo n.º 1
0
def dump_graphite_dashboards(c, query='', graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL):
    """
    Dump Graphite dashboards to stdout in Tessera JSON format.
    """
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(graphite, tessera)
    importer.dump_dashboards(query)
Exemplo n.º 2
0
def dump_graphite_dashboards(c, query='', graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL):
    """
    Dump Graphite dashboards to stdout in Tessera JSON format.
    """
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(graphite, tessera)
    importer.dump_dashboards(query)
Exemplo n.º 3
0
def import_graphite_dashboards(
    c, query='', layout=Section.Layout.FLUID, columns=4, overwrite=False
):
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(app.config['GRAPHITE_URL'])
    importer.import_dashboards(
        query, overwrite=overwrite, layout=layout, columns=int(columns)
    )
Exemplo n.º 4
0
def import_graphite_dashboards(
    c, query='', layout=Section.Layout.FLUID, columns=4, overwrite=False,
    graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL
):
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(graphite, tessera)
    importer.import_dashboards(
        query, overwrite=overwrite, layout=layout, columns=int(columns)
    )
Exemplo n.º 5
0
def import_graphite_dashboards(
    c, query='', layout=Section.Layout.FLUID, columns=4, overwrite=False,
    graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL
):
    """
    Import dashboards from a Graphite vanilla dashboard.
    """
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(graphite, tessera, config['GRAPHITE_AUTH'])
    importer.import_dashboards(
        query, overwrite=overwrite, layout=layout, columns=int(columns)
    )
Exemplo n.º 6
0
def import_graphite_dashboards(
    c,
    query="",
    layout=Section.Layout.FLUID,
    columns=4,
    overwrite=False,
    graphite=DEFAULT_GRAPHITE_URL,
    tessera=DEFAULT_TESSERA_URL,
):
    """
    Import dashboards from a Graphite vanilla dashboard.
    """
    log.info("Importing dashboards from graphite")
    importer = GraphiteDashboardImporter(graphite, tessera, config["GRAPHITE_AUTH"])
    importer.import_dashboards(query, overwrite=overwrite, layout=layout, columns=int(columns))
Exemplo n.º 7
0
def dump_graphite_dashboards(c, query='', graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL):
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(graphite, tessera)
    importer.dump_dashboards(query)
Exemplo n.º 8
0
def dump_graphite_dashboards(c, query=''):
    log.info('Importing dashboards from graphite')
    importer = GraphiteDashboardImporter(app.config['GRAPHITE_URL'])
    importer.dump_dashboards(query)