-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix-rgl-dashboard-error
- Loading branch information
Showing
181 changed files
with
11,642 additions
and
4,591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
name: Request Dashboard | ||
about: Request a new dashboard for the SigNoz Dashboards repository | ||
title: '[Dashboard Request] ' | ||
labels: 'dashboard-template' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Use this template to request a new dashboard for the SigNoz Dashboards repository. Providing detailed information will help us understand your needs better and speed up the dashboard creation process. --> | ||
|
||
## Dashboard Name | ||
|
||
<!-- Provide the name for the requested dashboard. Be specific (e.g., "MySQL Monitoring Dashboard"). --> | ||
|
||
## Expected Dashboard Sections and Panels | ||
|
||
(Can be tweaked (add or remove panels/sections) according to available metrics) | ||
|
||
### Section Name | ||
|
||
<!-- Brief description of what this section should display (e.g., "Resource usage metrics for MySQL database"). --> | ||
|
||
### Panel Name | ||
|
||
<!-- Description of the panel (e.g., "Displays current CPU usage, memory usage, etc."). --> | ||
|
||
<!-- - **Example:** | ||
- **Section**: Resource Metrics | ||
- **Panel**: CPU Usage - Displays the current CPU usage across all database instances. | ||
- **Panel**: Memory Usage - Displays the total memory used by the MySQL process. --> | ||
|
||
<!-- Repeat this format for any additional sections or panels. --> | ||
|
||
## Expected Dashboard Variables | ||
|
||
<!-- List any dashboard variables that should be included in the dashboard. Examples could be `deployment.environment`, `hostname`, `region`, etc. --> | ||
|
||
## Additional Comments or Requirements | ||
|
||
<!-- Include any other details, special requirements, or specific visualizations you'd like to request for this dashboard. --> | ||
|
||
## References or Screenshots | ||
|
||
<!-- Add any references or screenshots of requested dashboard if available. --> | ||
|
||
## 📋 Notes | ||
|
||
Please review the [CONTRIBUTING.md](https://github.com/SigNoz/dashboards/blob/main/CONTRIBUTING.md) for guidelines on dashboard structure, naming conventions, and how to submit a pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package anomaly | ||
|
||
import ( | ||
"context" | ||
|
||
querierV2 "go.signoz.io/signoz/pkg/query-service/app/querier/v2" | ||
"go.signoz.io/signoz/pkg/query-service/app/queryBuilder" | ||
) | ||
|
||
type DailyProvider struct { | ||
BaseSeasonalProvider | ||
} | ||
|
||
var _ BaseProvider = (*DailyProvider)(nil) | ||
|
||
func (dp *DailyProvider) GetBaseSeasonalProvider() *BaseSeasonalProvider { | ||
return &dp.BaseSeasonalProvider | ||
} | ||
|
||
// NewDailyProvider uses the same generic option type | ||
func NewDailyProvider(opts ...GenericProviderOption[*DailyProvider]) *DailyProvider { | ||
dp := &DailyProvider{ | ||
BaseSeasonalProvider: BaseSeasonalProvider{}, | ||
} | ||
|
||
for _, opt := range opts { | ||
opt(dp) | ||
} | ||
|
||
dp.querierV2 = querierV2.NewQuerier(querierV2.QuerierOptions{ | ||
Reader: dp.reader, | ||
Cache: dp.cache, | ||
KeyGenerator: queryBuilder.NewKeyGenerator(), | ||
FluxInterval: dp.fluxInterval, | ||
FeatureLookup: dp.ff, | ||
}) | ||
|
||
return dp | ||
} | ||
|
||
func (p *DailyProvider) GetAnomalies(ctx context.Context, req *GetAnomaliesRequest) (*GetAnomaliesResponse, error) { | ||
req.Seasonality = SeasonalityDaily | ||
return p.getAnomalies(ctx, req) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package anomaly | ||
|
||
import ( | ||
"context" | ||
|
||
querierV2 "go.signoz.io/signoz/pkg/query-service/app/querier/v2" | ||
"go.signoz.io/signoz/pkg/query-service/app/queryBuilder" | ||
) | ||
|
||
type HourlyProvider struct { | ||
BaseSeasonalProvider | ||
} | ||
|
||
var _ BaseProvider = (*HourlyProvider)(nil) | ||
|
||
func (hp *HourlyProvider) GetBaseSeasonalProvider() *BaseSeasonalProvider { | ||
return &hp.BaseSeasonalProvider | ||
} | ||
|
||
// NewHourlyProvider now uses the generic option type | ||
func NewHourlyProvider(opts ...GenericProviderOption[*HourlyProvider]) *HourlyProvider { | ||
hp := &HourlyProvider{ | ||
BaseSeasonalProvider: BaseSeasonalProvider{}, | ||
} | ||
|
||
for _, opt := range opts { | ||
opt(hp) | ||
} | ||
|
||
hp.querierV2 = querierV2.NewQuerier(querierV2.QuerierOptions{ | ||
Reader: hp.reader, | ||
Cache: hp.cache, | ||
KeyGenerator: queryBuilder.NewKeyGenerator(), | ||
FluxInterval: hp.fluxInterval, | ||
FeatureLookup: hp.ff, | ||
}) | ||
|
||
return hp | ||
} | ||
|
||
func (p *HourlyProvider) GetAnomalies(ctx context.Context, req *GetAnomaliesRequest) (*GetAnomaliesResponse, error) { | ||
req.Seasonality = SeasonalityHourly | ||
return p.getAnomalies(ctx, req) | ||
} |
Oops, something went wrong.