grafana/public/app/plugins/datasource/graphite
Piotr Jamróz dbe7d3298d
Graphite: Migrate to React (part 1: move state to redux) (#36484)
* Add UMLs

* Add rendered diagrams

* Move QueryCtrl to flux

* Remove redundant param in the reducer

* Use named imports for lodash and fix typing for GraphiteTagOperator

* Add missing async/await

* Extract providers to a separate file

* Clean up async await

* Rename controller functions back to main

* Simplify creating actions

* Re-order controller functions

* Separate helpers from actions

* Rename vars

* Simplify helpers

* Move controller methods to state reducers

* Remove docs (they are added in design doc)

* Move actions.ts to state folder

* Add docs

* Add old methods stubs for easier review

* Check how state dependencies will be mapped

* Rename state to store

* Rename state to store

* Rewrite spec tests for Graphite Query Controller

* Update docs

* Update docs

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Add more type definitions

* Load function definitions before parsing the target on initial load

* Change targetChanged to updateQuery to avoid mutating state directly

It's also needed for extra refresh/runQuery execution as handleTargetChanged doesn't handle changing the raw query

* Fix updating query after adding a function

* Simplify updating function params

* Remove redundant awaits

* Use redux Action

* Use more specific type for GraphiteTag

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-07-21 09:24:36 +02:00
..
configuration Explore: Map Graphite queries to Loki (#33405) 2021-05-06 09:26:26 +02:00
dashboards Datasources: Update dashboards (#22476) 2020-03-11 10:56:45 +01:00
img optimize png images using zopflipng (#6197) 2016-10-05 15:57:50 +02:00
partials Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
specs Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
state Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
add_graphite_func.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
datasource.test.ts Graphite: Expand metric names for variables (#33694) 2021-05-11 09:39:44 +02:00
datasource.ts Graphite: Expand metric names for variables (#33694) 2021-05-11 09:39:44 +02:00
func_editor.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
FunctionEditor.test.tsx Graphite: Handle unknown Graphite functions without breaking the visual editor (#32635) 2021-04-09 23:21:53 +02:00
FunctionEditor.tsx Graphite: Handle unknown Graphite functions without breaking the visual editor (#32635) 2021-04-09 23:21:53 +02:00
FunctionEditorControls.tsx Graphite: Handle unknown Graphite functions without breaking the visual editor (#32635) 2021-04-09 23:21:53 +02:00
gfunc.test.ts Graphite: Handle unknown Graphite functions without breaking the visual editor (#32635) 2021-04-09 23:21:53 +02:00
gfunc.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
graphite_query.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
lexer.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
meta.test.ts Inspector: support custom metadata display (#20854) 2020-01-09 22:59:23 -08:00
meta.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
MetricTankMetaInspector.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
module.ts Inspector: support custom metadata display (#20854) 2020-01-09 22:59:23 -08:00
parser.ts Graphite: Refactor lexer and parser (#17958) 2019-07-05 16:47:21 +02:00
plugin.json Chore: show grafana labs not project (#23913) 2020-04-26 15:34:56 -07:00
query_ctrl.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
query_help.md change: more work on changing default group by time interval to min interval setting 2017-09-01 15:57:02 +02:00
README.md Docs: Minor edits to the README and several md files (#19238) 2019-09-20 00:04:56 +02:00
types.ts Graphite: Migrate to React (part 1: move state to redux) (#36484) 2021-07-21 09:24:36 +02:00
utils.test.ts Improve error handling for Graphite 0.9 and 1.0 (#32642) 2021-04-07 16:11:00 +02:00
utils.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
versions.ts Graphite: fix autocomplete when tags are not available (#31680) 2021-03-16 10:59:53 +01:00

Graphite Data Source - Native Plugin

Grafana ships with built in support for Graphite (of course!).

Grafana has an advanced Graphite query editor that lets you quickly navigate the metric space, add functions, change function parameters and much more. The editor can handle all types of graphite queries. It can even handle complex nested queries through the use of query references.

Read more about it here:

http://docs.grafana.org/datasources/graphite/

Graphite 1.1 Release:

https://grafana.com/blog/2018/01/11/graphite-1.1-teaching-an-old-dog-new-tricks/