Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

9.3 KB
Raw Blame
.metric-details-drawer {
	.metric-details-header {
		display: flex;
		justify-content: space-between;
		align-items: center;

		.metric-details-title {
			display: flex;
			align-items: center;
			gap: 8px;

			.ant-typography {
				font-family: 'Geist Mono';
			}
		}

		.metric-details-header-buttons {
			display: flex;
			gap: 8px;
		}

		.ant-btn {
			display: flex;
			align-items: center;
			gap: 4px;
			background-color: var(--l1-border);
		}

		.inspect-metrics-button {
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.metric-details-content {
		display: flex;
		flex-direction: column;
		gap: 12px;

		.metrics-metadata-error {
			padding: 16px !important;
		}

		.metric-details-content-grid {
			height: 50px;
			.labels-row,
			.values-row {
				display: grid;
				grid-template-columns: 1fr 1fr 2fr;
				gap: 30px;
				align-items: center;
			}

			.metric-highlights-loading-inline {
				grid-column: 1 / -1;
				display: flex;
				align-items: center;
				gap: 8px;
			}

			.metric-highlights-error-state {
				display: flex;
				gap: 8px;
				height: 100%;
				width: 100%;
				align-items: center;

				.ant-btn {
					padding: 2px 4px;
				}
			}

			.labels-row {
				margin-bottom: 8px;

				.metric-details-grid-label {
					font-size: 11px;
				}
			}

			.values-row {
				color: var(--l1-foreground);
				font-family: 'Geist Mono';
				font-style: normal;
				font-weight: 600;
				line-height: 20px; /* 142.857% */
				letter-spacing: -0.07px;

				.metric-details-grid-value {
					font-size: 14px;
				}
			}
		}

		.dashboards-and-alerts-popover-container {
			display: flex;
			gap: 16px;
			height: 32px;

			.dashboards-and-alerts-popover {
				border-radius: 20px;
				padding: 4px 8px;
				cursor: pointer;
				display: flex;
				justify-content: center;
				align-items: center;
				gap: 4px;

				&:hover {
					opacity: 0.8;
				}
			}

			.dashboards-popover {
				border: 1px solid var(--bg-sienna-500);
				.ant-typography {
					color: var(--bg-sienna-500);
				}
			}

			.alerts-popover {
				border: 1px solid var(--bg-sakura-500);
				.ant-typography {
					color: var(--bg-sakura-500);
				}
			}
		}

		.metrics-accordion-loading-state {
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 24px;
		}

		.metrics-accordion {
			.all-attributes-error-state {
				height: 300px;
			}

			.ant-table-body {
				&::-webkit-scrollbar {
					width: 2px;
				}

				&::-webkit-scrollbar-track {
					background: transparent;
				}

				&::-webkit-scrollbar-thumb {
					background: var(--l3-background);
					border-radius: 1px;
				}
			}

			.metrics-accordion-header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 36px;

				.all-attributes-header-title {
					display: flex;
					align-items: center;
					gap: 6px;

					.lucide-info {
						cursor: pointer;
						color: var(--l2-foreground);
					}
				}

				.ant-typography {
					font-family: 'Geist Mono';
					color: var(--bg-robin-400);
				}

				.action-menu {
					display: flex;
					gap: 4px;
					align-items: center;
					align-self: flex-start;

					.action-button {
						display: flex;
						gap: 4px;
						align-items: center;
						align-self: flex-start;
						.ant-typography {
							font-family: 'Inter';
							color: var(--l2-foreground);
						}
					}
				}

				.all-attributes-search-input {
					width: 300px;
				}
			}

			.all-attributes-content {
				.metric-metadata-key {
					.all-attributes-key {
						display: flex;
						justify-content: space-between;
						align-items: center;
						.ant-btn {
							.ant-typography:first-child {
								font-family: 'Geist Mono';
								color: var(--bg-robin-400);
								background-color: transparent;
							}
						}
						.copy-feedback {
							display: inline-flex;
							align-items: center;
							color: var(--bg-forest-500);
							animation: fade-in-out 1.5s ease-in-out;
						}
						.all-attributes-contribution {
							font-family: 'Geist Mono';
							color: var(--l2-foreground);
						}
					}
				}

				.metric-metadata-value {
					.all-attributes-value {
						display: flex;
						flex-direction: column;
						gap: 4px;
						max-height: 220px;
						overflow-y: scroll;
						overflow-x: hidden;
						&::-webkit-scrollbar {
							width: 2px;
						}

						&::-webkit-scrollbar-track {
							background: transparent;
						}

						&::-webkit-scrollbar-thumb {
							background: var(--l3-background);
							border-radius: 1px;
						}
						.all-attributes-value-item {
							display: flex;
							align-items: center;
							gap: 4px;

							.copy-feedback {
								display: inline-flex;
								align-items: center;
								color: var(--bg-forest-500);
								animation: fade-in-out 1.5s ease-in-out;
							}
						}
						.ant-btn {
							text-align: left;
							width: fit-content;
							background-color: var(--l1-border);
							.ant-typography {
								color: var(--l2-foreground);
								font-family: 'Geist Mono';
								text-overflow: ellipsis;
							}
							&:hover {
								background-color: var(--l1-border);
							}
						}
					}
				}
			}

			.ant-collapse-content-box {
				padding: 0;

				.metric-metadata-error-state {
					height: 267px;
				}
			}

			.ant-collapse-header {
				display: flex !important;
				align-items: center !important;
			}

			.metric-metadata-key {
				padding-left: 10px;
				vertical-align: middle;
				.field-renderer-container {
					.label {
						color: var(--l2-foreground);
					}
				}
			}

			.metric-metadata-value {
				height: 67px;
				background: color-mix(in srgb, var(--l1-border) 40%, transparent);
				overflow-x: scroll;
				.field-renderer-container {
					.label {
						color: var(--l1-foreground);
						padding-right: 10px;
					}
				}
				&::-webkit-scrollbar {
					height: 2px;
				}
			}

			.ant-table-content {
				margin-bottom: 0 !important;
			}

			.ant-collapse {
				border-width: 0.5px !important;
			}

			.ant-collapse-item {
				border-width: 0.5px !important;
			}

			.ant-collapse-content {
				border-top-width: 0.5px !important;
			}
		}
	}

	.ant-select {
		.ant-select-selector {
			width: 200px !important;
		}
	}
}

.top-attributes-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	font-family: 'Geist Mono' !important;
	max-height: 300px;
	overflow-y: scroll;
	.top-attributes-item {
		display: flex;
		justify-content: space-between;

		.top-attributes-item-progress {
			display: flex;
			gap: 12px;
			height: 34px;
			width: 100%;
			color: var(--l1-foreground);
			padding: 0 12px;
			align-items: center;
			position: relative;

			.top-attributes-item-key {
				z-index: 2;
			}

			.top-attributes-item-count {
				background-color: var(--l1-border);
				border-radius: 50px;
				padding: 2px 6px;
				color: var(--l2-foreground);
				z-index: 2;
			}

			.top-attributes-item-progress-bar {
				background-color: var(--l1-border);
				height: 100%;
				position: absolute;
				top: 0;
				left: 0;
			}
		}
	}
}

.metric-metadata-value {
	.y-axis-unit-selector-component {
		.ant-select {
			width: auto !important;
		}
	}
}

.metric-details-error-state {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

.attribute-key-popover-overlay {
	.ant-popover-inner {
		padding: 0 !important;
		border-radius: 4px;
		border: 1px solid var(--l1-border);
		background: linear-gradient(
			139deg,
			color-mix(in srgb, var(--card) 80%, transparent) 0%,
			color-mix(in srgb, var(--card) 90%, transparent) 98.68%
		);
		box-shadow: 4px 10px 16px 2px rgba(0, 0, 0, 0.2);
		backdrop-filter: blur(20px);
	}

	.ant-menu {
		font-size: 12px;
		background: transparent;

		.ant-menu-item {
			height: 32px;
			line-height: 32px;
			padding: 0 12px;
			font-size: 12px;
		}
	}
}

.all-values-popover-overlay {
	.ant-popover-inner {
		padding: 0 !important;
		border-radius: 4px;
		border: 1px solid var(--l1-border);
		background: linear-gradient(
			139deg,
			color-mix(in srgb, var(--card) 80%, transparent) 0%,
			color-mix(in srgb, var(--card) 90%, transparent) 98.68%
		);
		box-shadow: 4px 10px 16px 2px rgba(0, 0, 0, 0.2);
		backdrop-filter: blur(20px);
	}
}

.all-values-popover {
	width: 320px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;

	.all-values-list {
		max-height: 300px;
		overflow-y: auto;
		display: flex;
		flex-direction: column;
		gap: 4px;

		&::-webkit-scrollbar {
			width: 2px;
		}

		&::-webkit-scrollbar-track {
			background: transparent;
		}

		&::-webkit-scrollbar-thumb {
			background: var(--l3-background);
			border-radius: 1px;
		}
	}

	.all-values-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 4px 8px;
		border-radius: 4px;
		gap: 8px;

		&:hover {
			background: color-mix(in srgb, var(--l1-foreground) 4%, transparent);
		}

		.all-values-item-text {
			flex: 1;
			min-width: 0;
			font-family: 'Geist Mono';
			font-size: 12px;
		}

		.all-values-item-actions {
			display: flex;
			gap: 2px;
			flex-shrink: 0;

			.copy-success {
				color: var(--bg-forest-500);
			}
		}
	}

	.all-values-empty {
		padding: 8px;
		text-align: center;
	}
}

.all-values-button {
	color: var(--bg-robin-400) !important;
}

@keyframes fade-in-out {
	0% {
		opacity: 0;
	}
	15% {
		opacity: 1;
	}
	85% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}