extending grafana to a new time-series analysis platform ......2019/03/01  · i am a software...

35
Extending Grafana to a new time-series analysis platform with Hastic Alexey Velikiy

Upload: others

Post on 02-Jan-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Extending Grafana to a new time-series analysis

platform with Hastic

Alexey Velikiy

Page 2: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

About Alexey Velikiy

https://github.com/jonyrockhttps://twitter.com/jonyrock

Page 3: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

I am a software engineer, who

● Makes libs, tools, plugins for Grafana and contributes into it.

● Founded CorpGlory Inc. which helps companies to solve complex monitoring tasks based on Grafana (consulting)

Page 4: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Projects for Grafana like:

● Webpack Template for Grafana plugins developmenthttps://github.com/CorpGlory/grafana-plugin-template-webpack

● Typings for TypeScript for plugins for Grafanahttps://github.com/CorpGlory/types-grafana

● Multibar Graph Panelhttps://github.com/CorpGlory/grafana-multibar-graph-panel

● …. more: https://github.com/CorpGlory/

Page 5: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

The story

● Started a year ago● When I called Daniel Lee....

Page 6: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Grafana is GREAT

Page 7: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

● It’s reliable metrics visualisation platform

● Most of data-sources already there● … and this is our foundation for Hastic

Page 8: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Now I want to detect patterns

Page 9: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

These two peaks are different:

It might be also drops, jumbs, thoughts...

Page 10: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Pattern might be weird:

Page 11: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

What is Hastic exactly?● A node.js \ python app for processing time-series data● An app for Grafana with UI for labeling and rendering

patterns● You only need a laptop to make it run

Page 12: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Hastic-app

Page 13: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

1. Label your pattern occurrence

2. Get detections when the pattern appears

Page 14: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

3. If detection is false ...

4. You can mark is as false (negative labeling) to train Hastic

Page 15: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Hastic-server

Page 16: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Grafana

data

data

labels

persistence

Grafana-Datasource-kit

Time seriesDatabase

nedb

WebhooksServer

detectionswebhooks

data

Page 17: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

The Hastic project...

Page 18: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Design principles

● Originally, is a tool to help you deal with false-positive● It is a tool, but not an ultimate solution● We make something stable first and then make a

foundation for something bigger (so now only patterns)● “Server” is stable, but analytic-units are not● You use our webhooks for alerting, but you can use it

with your alert system● You need to secure your hastic-server instance

Page 19: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

● First public announcement on Monitorama September 5, 2018

● … from that moment ...

Page 20: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Hastic-Server:

* Features: 12* Bugfixes: 29

* Enhancements: 14

Hastic-App:

* Features: 9* Bugfixes: 17

* Enhancements: 11

Page 21: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

HighlightsGraphite / Prometheus / ElasticSearch / PostgreSQL / TimescaleDB support.

Positive / Negative labels

Threshold detector

RPM

Panel -> Application

Webhooks.

Reduce amount of required labeled segments for learning (>=1)

Parallel learning for analytic units

Decouple "analytics" and "server" processes to different docker containers.

Page 22: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Hastic is BETA NOW!

Page 23: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Try in now:https://hastic.io/downloads/

Page 24: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded
Page 25: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

A new platform?

● You can create your “Detectors” for detecting anomalies and apply custom statistical modelsIt is a python class to implement

● You can make Grafana plugins with Hastic’s API for detecting not only single-value metrics, but geospatial, graph, text data

Page 26: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Our business model

We are inspired by Grafana

● Hastic as a service● Hastic on-premise● Paid services and consulting

Page 27: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Thanks too...

Page 28: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Grafana LabsFor a great support

Page 29: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

American Consulate in WarsawFor processing my emergency case

Page 30: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

CorpGlory Dev teamFor hard work

@rozetko, @amper43, @VargBurz, @sanke1

Page 31: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

My girlfriendinstagram.com/katetito

Page 32: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

MonitoramaFor spreading the first word about us

@obfuscurity

Page 33: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Our early adoptersFor testing and features requests

Page 34: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

You guysFor making this day so awesome

Page 35: Extending Grafana to a new time-series analysis platform ......2019/03/01  · I am a software engineer, who Makes libs, tools, plugins for Grafana and contributes into it. Founded

Our contacts:https://github.com/hastichttps://hastic.io/

For all your inquiries:[email protected]

Thank you!