Skip to content

Commit 8230456

Browse files
committed
final adjustments
1 parent 320887b commit 8230456

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/stories/InteractiveEsql.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from 'react';
9-
import { WithSlider } from './WithSlicer';
9+
import { WithSlider } from './WithSlider';
1010
import { FormatEsql, FormatEsqlProps } from './FormatEsql';
1111

1212
export interface InteractiveEsqlProps extends FormatEsqlProps {

src/stories/InteractivePromQL.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ export const BinaryExpression: Story = {
4747
initialWidth: 80,
4848
},
4949
};
50+
51+
export const Long: Story = {
52+
args: {
53+
query: `histogram_quantile(0.9, rate(demo_api_request_duration_seconds_bucket{job="demo"}[5m])) > 0.05
54+
and
55+
rate(demo_api_request_duration_seconds_count{job="demo"}[5m]) > 1
56+
and ((node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes + node_remainder * Math_PI) / node_memory_MemTotal_bytes * 100)
57+
or (sum(rate(http_requests_total{job="apiserver",handler="/api/comments"}[5m])) by (job))`,
58+
initialWidth: 80,
59+
},
60+
};

src/stories/InteractivePromQL.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from 'react';
9-
import { WithSlider } from './WithSlicer';
9+
import { WithSlider } from './WithSlider';
1010
import { FormatPromQL, FormatPromQLProps } from './FormatPromQL';
1111

1212
export interface InteractivePromQLProps extends FormatPromQLProps {

0 commit comments

Comments
 (0)