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

Stats with Opentelemetry #141

Merged
merged 186 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from 154 commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
a158f84
dev: commit all
kudep Oct 24, 2022
b2e4236
merge/stats: add source, example, test files
RLKRo Oct 27, 2022
1b04aff
merge/stats: update imports of dff modules
RLKRo Oct 27, 2022
49a627b
Merge branch 'dev' into merge/stats
RLKRo Oct 28, 2022
abe24a0
Merge branch 'dev' into merge/stats
RLKRo Nov 1, 2022
3432744
Update superset_dashboard location
RLKRo Nov 1, 2022
34ae922
Update pipeline interface usage in examples
RLKRo Nov 1, 2022
7cba23d
Rename _utils to _stats_utils
RLKRo Nov 1, 2022
b0e52e7
Change test behaviour to get db config from .env_file
RLKRo Nov 1, 2022
5a22625
Reformat test_examples to the current format
RLKRo Nov 1, 2022
cc92252
Update docker files
RLKRo Nov 1, 2022
e680c53
Update setup.py
RLKRo Nov 1, 2022
d8092cb
Add ImportError handling to source files
RLKRo Nov 2, 2022
58dcc97
Remove __init__ contents
RLKRo Nov 2, 2022
936b61a
Rename df_stats to dff.stats
RLKRo Nov 2, 2022
71b9c18
Add test skip if db is not running
RLKRo Nov 2, 2022
724537f
Revert "Remove __init__ contents"
RLKRo Nov 2, 2022
11e0c33
merge dev
ruthenian8 Nov 23, 2022
331fee3
update examples; remove stats_utils; update readme; use common toy sc…
ruthenian8 Nov 23, 2022
3d03e0b
apply formatting
ruthenian8 Nov 23, 2022
7db6abc
add tests for methods of savers
ruthenian8 Nov 23, 2022
df792b9
apply linting
ruthenian8 Nov 23, 2022
b4e0784
add tests for cli help command
ruthenian8 Nov 23, 2022
5c47eec
apply formatting
ruthenian8 Nov 23, 2022
a023968
add unnecessary tests
ruthenian8 Nov 23, 2022
3bb48fa
update coveragerc
ruthenian8 Nov 23, 2022
bb05e87
remove version-dependent tests
ruthenian8 Nov 23, 2022
479a588
merge/stats: rm commit
kudep Nov 23, 2022
bfd25f2
Update MANIFEST.in
ruthenian8 Nov 24, 2022
c5a75a5
set up tests for superset
ruthenian8 Nov 24, 2022
213531f
Merge branch 'merge/stats' of https://github.com/deeppavlov/dialog_fl…
ruthenian8 Nov 24, 2022
a0f9475
skip tests on superset missing
ruthenian8 Nov 25, 2022
d87a796
merge remote dev
ruthenian8 Dec 26, 2022
570dea8
Correct formatting:
ruthenian8 Dec 26, 2022
bf2ddaf
merge branch dev
ruthenian8 Mar 1, 2023
0541d98
additional tests for defaults && cli
ruthenian8 Mar 2, 2023
7205481
remove cause of loop
ruthenian8 Mar 2, 2023
ec53e6f
comment main for debugging
ruthenian8 Mar 2, 2023
6891688
change superset version
ruthenian8 Mar 2, 2023
76c0158
apply lint
ruthenian8 Mar 2, 2023
8e05fa4
change docstrings
ruthenian8 Mar 6, 2023
3923647
apply lint
ruthenian8 Mar 6, 2023
c4ba2aa
adapt authorization
ruthenian8 Mar 9, 2023
2939d9d
use same session for import
ruthenian8 Mar 9, 2023
86b6cb3
use alternate login
ruthenian8 Mar 9, 2023
f8a9390
change request endpoint
ruthenian8 Mar 9, 2023
79540a3
fix typo in access token url
ruthenian8 Mar 9, 2023
e37c8bf
remove accept headers
ruthenian8 Mar 9, 2023
e7e82f1
encode data with json
ruthenian8 Mar 9, 2023
fee1f1a
not applying json to databases request
ruthenian8 Mar 9, 2023
3a60cad
Update documentation; rename default table to dff_stats from df_stats;
ruthenian8 Mar 13, 2023
b82a94d
Apply lint
ruthenian8 Mar 13, 2023
258ed5e
Update doc titles and docstrings for class methods
ruthenian8 Mar 13, 2023
f29e994
Merge branch 'dev' into merge/stats
ruthenian8 Mar 13, 2023
2a830fb
add empty line to test_full
ruthenian8 Mar 13, 2023
d5fb3c8
add test skip conditions
ruthenian8 Mar 14, 2023
1ccd68e
move exports in test_savers
ruthenian8 Mar 14, 2023
e46e7ce
circumvent importerrors with missing dependencies
ruthenian8 Mar 14, 2023
4281b35
merge remote dev
ruthenian8 Mar 30, 2023
6e838fa
update examples
ruthenian8 Mar 30, 2023
725449c
update setup.py
ruthenian8 Mar 30, 2023
026f481
update setup.py
ruthenian8 Mar 30, 2023
02c0c0f
run examples if not interactive mode
ruthenian8 Mar 30, 2023
59a8c05
Change tutorials for docs building;
ruthenian8 Mar 31, 2023
9f6993f
restore parse_args in dff/utils
ruthenian8 Mar 31, 2023
3c589d3
remove Actor call from README.md
ruthenian8 Apr 7, 2023
e2732fc
Merge branch 'dev' into merge/stats
ruthenian8 Apr 7, 2023
63daf14
use environment variables in ipython during doc building
ruthenian8 Apr 11, 2023
525389d
alter tutorials; update saver tests; fix datetime problem in clickhou…
ruthenian8 Apr 14, 2023
80afdd7
update savers: default values don't get saved on empty data; create_t…
ruthenian8 Apr 14, 2023
ca50ce2
apply lint
ruthenian8 Apr 14, 2023
c4c96c1
Update README; add Stats image build workflow
ruthenian8 Apr 17, 2023
b68a747
fix json serialization problem; fix tutorials cli; fix asyncio lock;
ruthenian8 Apr 17, 2023
a37837b
update docker-compose; update docs
ruthenian8 Apr 18, 2023
617f98a
update setup.py to circumvent troubles with sqlparse
ruthenian8 Apr 18, 2023
deb3022
docs: fix small mistakes
avsakharov Apr 24, 2023
7fc5c19
Move create_table calls to the saver factory function; make the saver…
ruthenian8 Apr 26, 2023
84afa75
fix saver tests
ruthenian8 Apr 26, 2023
406118b
remove TODO sign from workflow
ruthenian8 Apr 26, 2023
b29e94c
merge/stats: merge
kudep May 12, 2023
2967547
fix dependencies
ruthenian8 May 12, 2023
727d101
split extractors into 'before' and 'after' groups
ruthenian8 May 15, 2023
090b4ba
apply lint
ruthenian8 May 15, 2023
364b562
change examples
ruthenian8 May 15, 2023
1c18b9c
check for undefined handler type; allow only 'before' and 'after' han…
ruthenian8 May 16, 2023
cf277e4
fix missing 'Literal' type problem
ruthenian8 May 16, 2023
fae17e5
allow arbitrary group names
ruthenian8 May 17, 2023
75bd3a0
initial commit: logs exported to json && to clickhouse
ruthenian8 May 19, 2023
a7915b6
TODO: GRPC log exporter patch
ruthenian8 May 22, 2023
62a2068
Move asyncio.run to saver constructors; override __getattribute__ for…
ruthenian8 May 22, 2023
21ca895
merge 'merge/stats'
ruthenian8 May 22, 2023
9eeb5ac
rename exporter to exporter_patch; ensure patch performance
ruthenian8 May 22, 2023
89ea0a4
partially implement instrumentor class
ruthenian8 May 23, 2023
791dd73
update dff_instrumentor implementation
ruthenian8 May 23, 2023
311315c
update __init__.py
ruthenian8 May 23, 2023
5d2f94b
initially configure logs export
ruthenian8 May 23, 2023
71d94bb
Run logger with None values through patch extension
ruthenian8 May 23, 2023
ebbd2cf
apply lint
ruthenian8 May 23, 2023
1f8add0
Change signature for set_*_destination; accept exporter instances as …
ruthenian8 May 24, 2023
ecb3c80
add instrumentation tests
ruthenian8 May 24, 2023
2a424de
use collector function name in log data
ruthenian8 May 29, 2023
8acaea3
apply lint
ruthenian8 May 29, 2023
697cae0
modify statement templates in cli.py; alter dashboard config files
ruthenian8 May 29, 2023
4c2f5be
configure tests for instrumentation and tutorials
ruthenian8 May 31, 2023
fbe1b67
adjust dependencies in setup.py
ruthenian8 Jun 2, 2023
4d1cc2e
apply lint; remove redundant imports
ruthenian8 Jun 2, 2023
a3bd360
adapt tests to 'test_no_deps' setup
ruthenian8 Jun 2, 2023
75cd709
* Factor out superset API authorization into a separate function in d…
ruthenian8 Jun 5, 2023
0ede2b6
Update test;
ruthenian8 Jun 5, 2023
3e202a9
Correct false test assertions
ruthenian8 Jun 5, 2023
ac53877
add clickhouse counts as testing procedure
ruthenian8 Jun 5, 2023
81a7f64
ensure correct no_deps run
ruthenian8 Jun 6, 2023
2f41025
configure schedule delay in batch exporter for faster exports
ruthenian8 Jun 6, 2023
c3c0e29
Merge branch 'dev' into feat/otlponly
ruthenian8 Jun 6, 2023
7165553
Add documentation to functions && classes;
ruthenian8 Jun 6, 2023
26b1de2
preserve build section for dashboard in docker-compose.yml
ruthenian8 Jun 7, 2023
a2fa342
Add module-level docstrings to new files
ruthenian8 Jun 7, 2023
a2cbd3a
reduce schedule delay time
ruthenian8 Jun 7, 2023
9ca6965
merge origin dev into feat/otlponly
ruthenian8 Jun 29, 2023
a0b3aab
adapt to new RuntimeInfo types
ruthenian8 Jun 29, 2023
4a4be8b
Merge remote-tracking branch 'origin/dev' into feat/otlponly
kudep Jul 7, 2023
6f91e4a
* Update help options for CLI commands;
ruthenian8 Jul 11, 2023
d55a011
Use 'host' & 'port' arguments in the 'test_upload' routine
ruthenian8 Jul 11, 2023
d2af04f
fix parse.urlunsplit blunder
ruthenian8 Jul 11, 2023
d27e4d6
udpate dashboard configuration
ruthenian8 Jul 11, 2023
bda5d56
update display test
ruthenian8 Jul 11, 2023
0d8cc1b
skip defaults testing on missing dependencies
ruthenian8 Jul 11, 2023
62266b8
add 'from_url' method; document 'from_url' in tutorials
ruthenian8 Jul 12, 2023
0cf8f8a
Alternate CLI
ruthenian8 Jul 13, 2023
3e12825
test main
ruthenian8 Jul 13, 2023
2681a38
change import order in test_no_deps
ruthenian8 Jul 13, 2023
19db071
Update the reviewed PR files
ruthenian8 Jul 19, 2023
6905947
add __enter__ and __exit__ methods
ruthenian8 Jul 20, 2023
63e085b
Update for review
ruthenian8 Jul 24, 2023
72f8b06
replace tutorials; move superset guide to 'docs' section
ruthenian8 Jul 24, 2023
bfb7e4e
remove stats instructions from readme; add tests for zip files
ruthenian8 Jul 24, 2023
ed72ac2
Update user guide; update tutorials to use 'get_current_label'; use '…
ruthenian8 Jul 25, 2023
f39dbf2
add pictures to doc; update superset configuration files
ruthenian8 Jul 26, 2023
750cf54
display 6 items before dropdown
ruthenian8 Jul 26, 2023
5965c08
do rollback for configuration files
ruthenian8 Jul 26, 2023
ec1f23a
merge remote dev
ruthenian8 Aug 3, 2023
3b80c9d
remove pydantic error in ServiceRuntimeInfo
ruthenian8 Aug 3, 2023
c9cf795
Merge branch 'dev' into feat/otlponly
ruthenian8 Aug 4, 2023
e17580a
update the user_guides file
ruthenian8 Aug 4, 2023
1430f4e
update documentation; ensure correct build
ruthenian8 Aug 4, 2023
2270e8a
Attemp png file update
ruthenian8 Aug 7, 2023
afdd4d5
Update two more images
ruthenian8 Aug 7, 2023
e6b765a
fix MetricReader problem; update guide; update setup: move clickhose …
ruthenian8 Aug 7, 2023
f9b4ac9
apply lint
ruthenian8 Aug 7, 2023
7cc17da
update guide; update docker-compose; refer to docs in pipeline integr…
ruthenian8 Aug 7, 2023
99aac41
rename env variable; add connectivity test
ruthenian8 Aug 8, 2023
5bf895f
remove orphan tag from superset guide, add to toctree"
ruthenian8 Aug 8, 2023
ac5ffa3
fix links in superset_guide
ruthenian8 Aug 8, 2023
56dfbbd
rename environment variable back
ruthenian8 Aug 8, 2023
fd18ff4
cast start_time to datetime additionally
ruthenian8 Aug 9, 2023
7d04700
Apply suggestions by @RLKRO from code review
ruthenian8 Aug 15, 2023
050e906
fix pydantic warnings; wrap input in messages in tutorials/pipeline (…
ruthenian8 Aug 8, 2023
04a1700
Fail tests on skip (#192)
RLKRo Aug 9, 2023
d020ed0
Normalization functions removed from __init__.py (#194)
pseusys Aug 10, 2023
2506be5
rename entrypoint to entrypoint_stats; update Superset guide; remove …
ruthenian8 Aug 15, 2023
211b8db
remove legacy from docker-compose && test_dbs; refactor set_meter_des…
ruthenian8 Aug 15, 2023
bcf9429
fix link in tutorial; update tests
ruthenian8 Aug 15, 2023
36ab05a
add skip marks; change test_main parameters
ruthenian8 Aug 15, 2023
a792dd9
debug test_main: replace db_table with db_name
ruthenian8 Aug 15, 2023
dd56517
update documentation for __main__, update user_guides
ruthenian8 Aug 17, 2023
3f2f6b1
merge dev
ruthenian8 Aug 17, 2023
796ad96
add installation line to tutors
ruthenian8 Aug 17, 2023
391249b
modify gitattributes; modify tutorial links
ruthenian8 Aug 21, 2023
121d71f
Merge branch 'dev' into feat/otlponly
ruthenian8 Aug 21, 2023
43f7a81
restore link in tutorial 2; rename db.type to db.driver; replace zip …
ruthenian8 Aug 21, 2023
249b5eb
move env variables to function body
ruthenian8 Aug 21, 2023
e0eaba7
deebug test_main
ruthenian8 Aug 21, 2023
830768f
Merge branch 'dev' into feat/otlponly
ruthenian8 Aug 22, 2023
ae273a8
Apply suggestions from RLKRO
ruthenian8 Aug 23, 2023
930e076
revert nbsphinx_allow_errors; update superset_guide.rst
ruthenian8 Aug 23, 2023
583b03c
Update superset guide; replace table name in function docstrings;
ruthenian8 Aug 23, 2023
85866b2
remove existing assets before import to ensure dashboard override
ruthenian8 Aug 24, 2023
0d16142
Update ; update tests
ruthenian8 Aug 24, 2023
c1bbcd1
remove max dialog length
ruthenian8 Aug 24, 2023
d067e08
Update dataset configuration; update Service load users configuration
ruthenian8 Aug 24, 2023
88b4ac1
add time grain filter to the dashboard; raise error on invalid extens…
ruthenian8 Aug 25, 2023
e793fc9
Add warnings about config overrides
ruthenian8 Aug 25, 2023
77c9959
Merge branch 'feat/otlponly' of github.com:deeppavlov/dialog_flow_fra…
kudep Aug 30, 2023
a1d0f39
make config files read only inside the otel container
ruthenian8 Aug 31, 2023
eae6045
Merge branch 'feat/otlponly' of github.com:deeppavlov/dialog_flow_fra…
kudep Sep 5, 2023
0bde984
feat/otlponly: fix typo
kudep Sep 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env_file
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ MON_PORT=8765
YDB_ENDPOINT=grpc://localhost:2136
YDB_DATABASE=/local
YDB_ANONYMOUS_CREDENTIALS=1
CLICKHOUSE_DB=test
CLICKHOUSE_USER=username
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
CLICKHOUSE_PASSWORD=pass
SUPERSET_USERNAME=superset
SUPERSET_PASSWORD=superset
8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* text=auto
*.py text eol=lf
*.sh text eol=lf
* text working-tree-encoding=UTF-8
* -text
# *.py text eol=lf
# *.sh text eol=lf
# * text working-tree-encoding=UTF-8
pseusys marked this conversation as resolved.
Show resolved Hide resolved
ruthenian8 marked this conversation as resolved.
Show resolved Hide resolved
45 changes: 45 additions & 0 deletions .github/workflows/update_dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: update_dashboard

on:
push:
branches:
- 'dev'
paths:
- 'dff/utils/docker/dockerfile_stats'
- 'dff/utils/docker/entrypoint.sh'
ruthenian8 marked this conversation as resolved.
Show resolved Hide resolved

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
build_and_publish_dashboard:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Log in to container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/superset_df_dashboard
tags: |
type=ref,event=branch
type=semver,event={{version}}

- name: Build and upload image
uses: docker/build-push-action@v4
with:
file: dff/utils/docker/dockerfile_stats
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include CONTRIBUTING.md
include LICENSE
include README.md
graft dff/config/superset_dashboard
include dff/context_storages/protocols.json

exclude makefile
Expand Down
10 changes: 10 additions & 0 deletions dff/config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Superset dashboard config

## Description

This directory provides yaml files for Superset dashboard configuration.
The files inside are not supposed to be edited manually for lest of compatibility breaks.
Placeholders inside the files will be filled automatically when you use the
`dff.stats` CLI command to generate a configuration archive.

Use `dff.stats cfg_from_file -h` or `dff.stats cfg_from_opts -h` for more info.
ruthenian8 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
slice_name: Flow visit ratio monitor
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_bar
params:
datasource: 2__table
viz_type: echarts_timeseries_bar
slice_id: 1
granularity_sqla: start_time
time_grain_sqla: null
time_range: No filter
metrics:
- aggregate: COUNT
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: context_id
description: null
expression: null
filterable: true
groupby: true
id: 1
is_certified: false
is_dttm: false
python_date_format: null
type: STRING
type_generic: 1
verbose_name: null
warning_markdown: null
expressionType: SIMPLE
hasCustomLabel: false
isNew: false
label: COUNT(context_id)
optionName: metric_waxxrrnkwwm_zudaex5z8bh
sqlExpression: null
groupby:
- flow_label
contributionMode: column
adhoc_filters: []
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
orientation: vertical
x_axis_title_margin: 15
y_axis_title: ''
y_axis_title_margin: 50
y_axis_title_position: Left
color_scheme: supersetColors
stack: true
only_total: true
zoomable: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
y_axis_format: SMART_NUMBER
y_axis_bounds:
- null
- null
rich_tooltip: true
tooltipTimeFormat: smart_date
extra_form_data: {}
dashboards:
- 1
query_context: '{"datasource":{"id":2,"type":"table"},"force":false,"queries":[{"time_range":"No
filter","granularity":"start_time","filters":[],"extras":{"time_grain_sqla":null,"having":"","where":""},"applied_time_extras":{},"columns":["flow_label"],"metrics":[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_waxxrrnkwwm_zudaex5z8bh","sqlExpression":null}],"orderby":[[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_waxxrrnkwwm_zudaex5z8bh","sqlExpression":null},false]],"annotation_layers":[],"row_limit":10000,"series_columns":["flow_label"],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"is_timeseries":true,"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["__timestamp"],"columns":["flow_label"],"aggregates":{"COUNT(context_id)":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"rename","options":{"columns":{"COUNT(context_id)":null},"level":0,"inplace":true}},{"operation":"contribution","options":{"orientation":"column"}},{"operation":"flatten"}]}],"form_data":{"datasource":"2__table","viz_type":"echarts_timeseries_bar","slice_id":1,"granularity_sqla":"start_time","time_grain_sqla":null,"time_range":"No
filter","metrics":[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_waxxrrnkwwm_zudaex5z8bh","sqlExpression":null}],"groupby":["flow_label"],"contributionMode":"column","adhoc_filters":[],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"orientation":"vertical","x_axis_title_margin":15,"y_axis_title":"","y_axis_title_margin":50,"y_axis_title_position":"Left","color_scheme":"supersetColors","stack":true,"only_total":true,"zoomable":true,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","y_axis_format":"SMART_NUMBER","y_axis_bounds":[null,null],"rich_tooltip":true,"tooltipTimeFormat":"smart_date","extra_form_data":{},"dashboards":[1],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: ba02528b-184b-4304-b027-f2b7d9011ab0
version: 1.0.0
dataset_uuid: fda98ab8-f550-45f1-9ded-0113f3e67260
59 changes: 59 additions & 0 deletions dff/config/superset_dashboard/charts/Node_Visits_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
slice_name: Node Visits
description: null
certified_by: null
certification_details: null
viz_type: dist_bar
params:
adhoc_filters: []
bottom_margin: auto
color_scheme: supersetColors
columns:
- label
datasource: 3__table
extra_form_data: {}
granularity_sqla: start_time
groupby:
- request_id
metrics:
- aggregate: COUNT
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: context_id
description: null
expression: null
filterable: true
groupby: true
id: 20
is_certified: false
is_dttm: false
python_date_format: null
type: STRING
type_generic: 1
verbose_name: null
warning_markdown: null
expressionType: SIMPLE
hasCustomLabel: false
isNew: false
label: COUNT(context_id)
optionName: metric_l2mle87zvnb_nfqzdxmig1d
sqlExpression: null
order_desc: true
rich_tooltip: true
row_limit: 10000
show_legend: true
time_range: No filter
viz_type: dist_bar
x_axis_label: History id
x_ticks_layout: auto
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
y_axis_label: Node visits
query_context: null
cache_timeout: null
uuid: 44f4ab9d-5072-4926-a6ed-8615fb81b3d0
version: 1.0.0
dataset_uuid: fda98ab8-f550-45f1-9ded-0113f3e67260
59 changes: 59 additions & 0 deletions dff/config/superset_dashboard/charts/Node_counts_3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
slice_name: Node counts
description: null
certified_by: null
certification_details: null
viz_type: dist_bar
params:
adhoc_filters: []
bar_stacked: true
bottom_margin: auto
color_scheme: supersetColors
columns:
- flow_label
datasource: 1__table
extra_form_data: {}
granularity_sqla: start_time
groupby:
- label
metrics:
- aggregate: COUNT_DISTINCT
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: context_id
description: null
expression: null
filterable: true
groupby: true
id: 1
is_certified: false
is_dttm: false
python_date_format: null
type: STRING
type_generic: 1
verbose_name: null
warning_markdown: null
expressionType: SIMPLE
hasCustomLabel: false
isNew: false
label: COUNT_DISTINCT(context_id)
optionName: metric_axee7fzlpu_upud0bdjv6
sqlExpression: null
order_bars: true
order_desc: true
rich_tooltip: true
row_limit: 10000
show_legend: true
time_range: No filter
viz_type: dist_bar
x_ticks_layout: auto
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
query_context: null
cache_timeout: null
uuid: 0c47c7b5-f500-46cb-97e3-9ebb637f0c8a
version: 1.0.0
dataset_uuid: fda98ab8-f550-45f1-9ded-0113f3e67260
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
slice_name: Node visit ratio monitor
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_bar
params:
datasource: 2__table
viz_type: echarts_timeseries_bar
slice_id: 4
granularity_sqla: start_time
time_grain_sqla: null
time_range: No filter
metrics:
- aggregate: COUNT
column:
advanced_data_type: null
certification_details: null
certified_by: null
column_name: context_id
description: null
expression: null
filterable: true
groupby: true
id: 1
is_certified: false
is_dttm: false
python_date_format: null
type: STRING
type_generic: 1
verbose_name: null
warning_markdown: null
expressionType: SIMPLE
hasCustomLabel: false
isNew: false
label: COUNT(context_id)
optionName: metric_9yefk3wj2g_5wbp61n0pyr
sqlExpression: null
groupby:
- flow_label
- node_label
contributionMode: column
adhoc_filters: []
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
orientation: vertical
x_axis_title: Datetime
x_axis_title_margin: 30
y_axis_title: Node visit ratio
y_axis_title_margin: 50
y_axis_title_position: Left
color_scheme: supersetColors
stack: true
only_total: true
zoomable: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
xAxisLabelRotation: 45
y_axis_format: SMART_NUMBER
logAxis: false
minorSplitLine: false
truncateYAxis: false
y_axis_bounds:
- null
- null
rich_tooltip: true
tooltipSortByMetric: true
tooltipTimeFormat: smart_date
extra_form_data: {}
dashboards:
- 1
query_context: '{"datasource":{"id":2,"type":"table"},"force":false,"queries":[{"time_range":"No
filter","granularity":"start_time","filters":[],"extras":{"time_grain_sqla":null,"having":"","where":""},"applied_time_extras":{},"columns":["flow_label","node_label"],"metrics":[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_9yefk3wj2g_5wbp61n0pyr","sqlExpression":null}],"orderby":[[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_9yefk3wj2g_5wbp61n0pyr","sqlExpression":null},false]],"annotation_layers":[],"row_limit":10000,"series_columns":["flow_label","node_label"],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"is_timeseries":true,"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["__timestamp"],"columns":["flow_label","node_label"],"aggregates":{"COUNT(context_id)":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"rename","options":{"columns":{"COUNT(context_id)":null},"level":0,"inplace":true}},{"operation":"contribution","options":{"orientation":"column"}},{"operation":"flatten"}]}],"form_data":{"datasource":"2__table","viz_type":"echarts_timeseries_bar","slice_id":4,"granularity_sqla":"start_time","time_grain_sqla":null,"time_range":"No
filter","metrics":[{"aggregate":"COUNT","column":{"advanced_data_type":null,"certification_details":null,"certified_by":null,"column_name":"context_id","description":null,"expression":null,"filterable":true,"groupby":true,"id":1,"is_certified":false,"is_dttm":false,"python_date_format":null,"type":"STRING","type_generic":1,"verbose_name":null,"warning_markdown":null},"expressionType":"SIMPLE","hasCustomLabel":false,"isNew":false,"label":"COUNT(context_id)","optionName":"metric_9yefk3wj2g_5wbp61n0pyr","sqlExpression":null}],"groupby":["flow_label","node_label"],"contributionMode":"column","adhoc_filters":[],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"orientation":"vertical","x_axis_title":"Datetime","x_axis_title_margin":30,"y_axis_title":"Node
visit ratio","y_axis_title_margin":50,"y_axis_title_position":"Left","color_scheme":"supersetColors","stack":true,"only_total":true,"zoomable":true,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","xAxisLabelRotation":45,"y_axis_format":"SMART_NUMBER","logAxis":false,"minorSplitLine":false,"truncateYAxis":false,"y_axis_bounds":[null,null],"rich_tooltip":true,"tooltipSortByMetric":true,"tooltipTimeFormat":"smart_date","extra_form_data":{},"dashboards":[1],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 6fafe59c-0fec-4cd8-a8b3-c0bfaffb2135
version: 1.0.0
dataset_uuid: fda98ab8-f550-45f1-9ded-0113f3e67260
Loading