Beispiel #1
0
    parser.add_argument('-g', '--debug', dest='debug', action='store_true')

    return parser


def get_params():
    parser = get_params_parser_create_dash()
    args = parser.parse_args()

    return args


if __name__ == '__main__':
    """Enriched to Kibana Publisher"""

    args = get_params()

    config_logging(args.debug)

    # TODO: Use param to build a real URL if possible
    kibana_host = "http://localhost:5601"

    try:
        url = create_dashboard(args.elastic_url, args.dashboard, args.index,
                               kibana_host, args.kibana_index)
    except KeyboardInterrupt:
        logging.info("\n\nReceived Ctrl-C or other break signal. Exiting.\n")
        sys.exit(0)

    logging.info("Kibana dashboard generated %s", url)
Beispiel #2
0
                        help="Kibana index name (.kibana default)")
    parser.add_argument('-g', '--debug', dest='debug', action='store_true')

    return parser


def get_params():
    parser = get_params_parser_create_dash()
    args = parser.parse_args()

    return args


if __name__ == '__main__':

    args = get_params()

    config_logging(args.debug)

    # TODO: Use param to build a real URL if possible
    kibana_host = "http://localhost:5601"

    try:
        url = create_dashboard(args.elastic_url, args.dashboard, args.index,
                               kibana_host, args.kibana_index)
    except KeyboardInterrupt:
        logging.info("\n\nReceived Ctrl-C or other break signal. Exiting.\n")
        sys.exit(0)

    logging.info("Kibana dashboard generated %s", url)