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

Release/v0.11.1 #1564

Merged
merged 17 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions deploy/docker-swarm/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
condition: on-failure

query-service:
image: signoz/query-service:0.11.0
image: signoz/query-service:0.11.1
command: ["-config=/root/config/prometheus.yml"]
# ports:
# - "6060:6060" # pprof port
Expand Down Expand Up @@ -70,7 +70,7 @@ services:
- clickhouse

frontend:
image: signoz/frontend:0.11.0
image: signoz/frontend:0.11.1
deploy:
restart_policy:
condition: on-failure
Expand All @@ -83,7 +83,7 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz-otel-collector:0.55.0
image: signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-config.yaml"]
user: root # required for reading docker container logs
volumes:
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
- clickhouse

otel-collector-metrics:
image: signoz-otel-collector:0.55.0
image: signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
3 changes: 1 addition & 2 deletions deploy/docker-swarm/clickhouse-setup/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ rule_files:

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:

scrape_configs: []

remote_read:
- url: tcp://clickhouse:9000/?database=signoz_metrics
8 changes: 6 additions & 2 deletions deploy/docker-swarm/common/nginx-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ server {
server_name _;

gzip on;
gzip_static on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_http_version 1.1;

# to handle uri issue 414 from nginx
client_max_body_size 24M;
large_client_header_buffers 8 16k;

location / {
if ( $uri = '/index.html' ) {
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker/clickhouse-setup/docker-compose-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
# Notes for Maintainers/Contributors who will change Line Numbers of Frontend & Query-Section. Please Update Line Numbers in `./scripts/commentLinesForSetup.sh` & `./CONTRIBUTING.md`
otel-collector:
container_name: otel-collector
image: signoz/signoz-otel-collector:0.55.0
image: signoz/signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-config.yaml"]
# user: root # required for reading docker container logs
volumes:
Expand All @@ -67,7 +67,7 @@ services:

otel-collector-metrics:
container_name: otel-collector-metrics
image: signoz/signoz-otel-collector:0.55.0
image: signoz/signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker/clickhouse-setup/docker-compose-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2.4"

services:
query-service:
image: signoz/query-service:0.11.0
image: signoz/query-service:0.11.1
container_name: query-service
command: ["-config=/root/config/prometheus.yml"]
# ports:
Expand Down Expand Up @@ -31,7 +31,7 @@ services:
condition: service_healthy

frontend:
image: signoz/frontend:0.11.0
image: signoz/frontend:0.11.1
container_name: frontend
restart: on-failure
depends_on:
Expand Down
8 changes: 4 additions & 4 deletions deploy/docker/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
# Notes for Maintainers/Contributors who will change Line Numbers of Frontend & Query-Section. Please Update Line Numbers in `./scripts/commentLinesForSetup.sh` & `./CONTRIBUTING.md`

query-service:
image: signoz/query-service:0.11.0
image: signoz/query-service:0.11.1
container_name: query-service
command: ["-config=/root/config/prometheus.yml"]
# ports:
Expand Down Expand Up @@ -68,7 +68,7 @@ services:
condition: service_healthy

frontend:
image: signoz/frontend:0.11.0
image: signoz/frontend:0.11.1
container_name: frontend
restart: on-failure
depends_on:
Expand All @@ -80,7 +80,7 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz/signoz-otel-collector:0.55.0
image: signoz/signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-config.yaml"]
user: root # required for reading docker container logs
volumes:
Expand All @@ -106,7 +106,7 @@ services:
condition: service_healthy

otel-collector-metrics:
image: signoz/signoz-otel-collector:0.55.0
image: signoz/signoz-otel-collector:0.55.1
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
3 changes: 1 addition & 2 deletions deploy/docker/clickhouse-setup/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ rule_files:

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:

scrape_configs: []

remote_read:
- url: tcp://clickhouse:9000/?database=signoz_metrics
3 changes: 1 addition & 2 deletions deploy/docker/common/nginx-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server {
server_name _;

gzip on;
gzip_static on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
Expand All @@ -13,7 +13,6 @@ server {

# to handle uri issue 414 from nginx
client_max_body_size 24M;

large_client_header_buffers 8 16k;

location / {
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /frontend
COPY package.json ./

# Install the dependencies and make the folder
RUN CI=1 yarn install
RUN CI=1 yarn install

COPY . .

Expand Down
10 changes: 7 additions & 3 deletions frontend/conf/default.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
server {
listen 3301;
server_name _;

gzip on;
gzip_static on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_http_version 1.1;

# to handle uri issue 414 from nginx
client_max_body_size 24M;
large_client_header_buffers 8 16k;

location / {
root /usr/share/nginx/html;
Expand Down
Binary file added frontend/public/Logos/elixir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/go.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/java.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/ms-net-framework.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/php.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/rails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/Logos/rust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions frontend/src/AppRoutes/pageComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ export const SettingsPage = Loadable(
() => import(/* webpackChunkName: "SettingsPage" */ 'pages/Settings'),
);

export const InstrumentationPage = Loadable(
() =>
import(
/* webpackChunkName: "InstrumentationPage" */ 'pages/AddInstrumentation'
),
export const GettingStarted = Loadable(
() => import(/* webpackChunkName: "GettingStarted" */ 'pages/GettingStarted'),
);

export const DashboardPage = Loadable(
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/AppRoutes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
EditAlertChannelsAlerts,
EditRulesPage,
ErrorDetails,
InstrumentationPage,
GettingStarted,
ListAllALertsPage,
Login,
Logs,
Expand Down Expand Up @@ -85,7 +85,7 @@ const routes: AppRoutes[] = [
{
path: ROUTES.INSTRUMENTATION,
exact: true,
component: InstrumentationPage,
component: GettingStarted,
isPrivate: true,
key: 'INSTRUMENTATION',
},
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/api/dashboard/variables/query.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import axios from 'api';
import { ErrorResponseHandler } from 'api/ErrorResponseHandler';
import { AxiosError } from 'axios';
import { ErrorResponse, SuccessResponse } from 'types/api';
import { PayloadProps, Props } from 'types/api/dashboard/variables/query';

const query = async (
props: Props,
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
try {
const response = await axios.get(
`/variables/query?query=${encodeURIComponent(props.query)}`,
);

return {
statusCode: 200,
error: null,
message: response.data.status,
payload: response.data.data,
};
} catch (error) {
return ErrorResponseHandler(error as AxiosError);
}
};

export default query;
2 changes: 1 addition & 1 deletion frontend/src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ROUTES = {
TRACE: '/trace',
TRACE_DETAIL: '/trace/:id',
SETTINGS: '/settings',
INSTRUMENTATION: '/add-instrumentation',
INSTRUMENTATION: '/get-started',
USAGE_EXPLORER: '/usage-explorer',
APPLICATION: '/application',
ALL_DASHBOARD: '/dashboard',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/container/AppLayout/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';

export const Layout = styled(LayoutComponent)`
&&& {
min-height: 91vh;
min-height: 92vh;
display: flex;
position: relative;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
timeItems,
timePreferance,
} from 'container/NewWidget/RightContainer/timeItems';
import { getDashboardVariables } from 'lib/dashbaordVariables/getDashboardVariables';
import getChartData from 'lib/getChartData';
import React, { useCallback, useState } from 'react';
import { useQuery } from 'react-query';
Expand Down Expand Up @@ -52,6 +53,7 @@ function FullView({
graphType: widget.panelTypes,
query: widget.query,
globalSelectedInterval: globalSelectedTime,
variables: getDashboardVariables(),
}),
);

Expand Down
13 changes: 13 additions & 0 deletions frontend/src/container/GridGraphLayout/Graph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AxiosError } from 'axios';
import { ChartData } from 'chart.js';
import Spinner from 'components/Spinner';
import GridGraphComponent from 'container/GridGraphComponent';
import { getDashboardVariables } from 'lib/dashbaordVariables/getDashboardVariables';
import getChartData from 'lib/getChartData';
import isEmpty from 'lodash-es/isEmpty';
import React, { memo, useCallback, useEffect, useState } from 'react';
Expand Down Expand Up @@ -104,11 +105,18 @@ function GridCardGraph({
useEffect(() => {
(async (): Promise<void> => {
try {
setState((state) => ({
...state,
error: false,
errorMessage: '',
loading: true,
}));
const response = await GetMetricQueryRange({
selectedTime: widget.timePreferance,
graphType: widget.panelTypes,
query: widget.query,
globalSelectedInterval,
variables: getDashboardVariables(),
});

const isError = response.error;
Expand Down Expand Up @@ -144,6 +152,11 @@ function GridCardGraph({
errorMessage: (error as AxiosError).toString(),
loading: false,
}));
} finally {
setState((state) => ({
...state,
loading: false,
}));
}
})();
}, [widget, maxTime, minTime, globalSelectedInterval]);
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/container/GridGraphLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function GridGraph(props: Props): JSX.Element {
name: data.name,
tags: data.tags,
widgets: data.widgets,
variables: data.variables,
layout,
},
uuid: selectedDashboard.uuid,
Expand Down Expand Up @@ -157,6 +158,7 @@ function GridGraph(props: Props): JSX.Element {
data.name,
data.tags,
data.title,
data.variables,
data.widgets,
dispatch,
saveLayoutPermission,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/container/GridGraphLayout/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const UpdateDashboard = async ({
description: data.description,
name: data.name,
tags: data.tags,
variables: data.variables,
widgets: [
...(data.widgets || []),
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('executeSearchQueries', () => {
updated_at: '',
data: {
title: 'first dashboard',
variables: {},
},
};
const secondDashboard: Dashboard = {
Expand All @@ -21,6 +22,7 @@ describe('executeSearchQueries', () => {
updated_at: '',
data: {
title: 'second dashboard',
variables: {},
},
};
const thirdDashboard: Dashboard = {
Expand All @@ -30,6 +32,7 @@ describe('executeSearchQueries', () => {
updated_at: '',
data: {
title: 'third dashboard (with special characters +?\\)',
variables: {},
},
};
const dashboards = [firstDashboard, secondDashboard, thirdDashboard];
Expand Down
Loading