Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Redis Graph module (GRAPH.QUERY, GRAPH.SLOWLOG) #157

Merged
merged 13 commits into from
Feb 4, 2021

Conversation

mikhail-vl
Copy link
Contributor

@mikhail-vl mikhail-vl commented Feb 2, 2021

Add support for Redis Graph commands:

  1. Graph.Query: https://oss.redislabs.com/redisgraph/commands/#graphquery
  2. Graph.SLOWLOG: https://oss.redislabs.com/redisgraph/commands/#graphslowlog

Graph.Query command should return 2 data frame with nodes and edges: https://grafana.com/docs/grafana/latest/panels/visualizations/node-graph/

Command examples:

  1. GRAPH.QUERY GOT_DEMO "MATCH (w:writer)-[wrote]->(b:book) return w,b"
  2. GRAPH.QUERY MotoGP "MATCH (r:Rider)-[:rides]->(t:Team {name:'Ducati'}) RETURN r,t"

Redis Data Type 7.4 dashboard has Node Graph panel for GOT_DEMO key.

Screen Shot 2021-01-31 at 9 39 59 PM

@mikhail-vl mikhail-vl added the enhancement New feature or request label Feb 2, 2021
@mikhail-vl mikhail-vl added this to the Version 1.4 milestone Feb 2, 2021
@mikhail-vl mikhail-vl self-assigned this Feb 2, 2021
@mikhail-vl mikhail-vl changed the title Add Redis Graph module Add Redis Graph module (GRAPH.QUERY, GRAPH.SLOWLOG) Feb 2, 2021
@codecov
Copy link

codecov bot commented Feb 2, 2021

Codecov Report

Merging #157 (b7b62fb) into master (3e20888) will increase coverage by 0.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   93.50%   93.89%   +0.38%     
==========================================
  Files          32       33       +1     
  Lines        1293     1375      +82     
  Branches       67       67              
==========================================
+ Hits         1209     1291      +82     
  Misses         74       74              
  Partials       10       10              
Impacted Files Coverage Δ
src/redis/command.ts 100.00% <ø> (ø)
pkg/query.go 95.12% <100.00%> (+0.25%) ⬆️
pkg/redis-graph.go 100.00% <100.00%> (ø)
src/redis/query.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e20888...b7b62fb. Read the comment docs.

@mikhail-vl mikhail-vl assigned mikhail-vl and unassigned mikhail-vl Feb 2, 2021
@mikhail-vl mikhail-vl linked an issue Feb 4, 2021 that may be closed by this pull request
3 tasks
Copy link
Contributor Author

@mikhail-vl mikhail-vl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mikhail-vl mikhail-vl modified the milestones: Version 1.4, Version 1.3.1 Feb 4, 2021
@mikhail-vl mikhail-vl merged commit 97d9409 into master Feb 4, 2021
@mikhail-vl mikhail-vl deleted the feat/redis-graph branch February 4, 2021 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify Redis Data Source on Grafana 7.4
2 participants