Files
forge/contrib/grafana-monitoring-mixin/config.libsonnet
zeekayandHanzo Dev 27cde39e36 Name every remaining identifier, path and default for this product
Storage buckets, indexer names, the bleve analyzer, the lock prefix, SSH host
keys, the markdown front-matter key, the container data paths, the RPM repo id
and the API security scheme all read as this product now, and app.example.ini
matches the code again. The upstream maintainer list and the changelog
generator config went with the release history they belonged to, and the
citation comments state the fact rather than link the issue.

Three inert rules turn out to have been inert because they named a module path
this tree does not use: gci grouped no first-party imports under prefix(), and
depguard let models/migrations import models and modules/structs. They now name
github.com/hanzoai/git. The config example also documented .gitea/workflows
while the code has read .hanzo/workflows for some time.

The authorized_keys marker follows the delegate-hook precedent: the new name is
written and the old one is still recognised, because a marker we do not know is
copied through as a hand-added key and leaves a revoked key authorized. The
stored user_setting key keeps its value; only a migration may change that.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-10 19:14:35 -07:00

99 lines
2.2 KiB
Jsonnet

{
_config+:: {
local c = self,
dashboardNamePrefix: 'Hanzo Forge',
dashboardTags: ['forge'],
dashboardPeriod: 'now-1h',
dashboardTimezone: 'default',
dashboardRefresh: '1m',
// please see https://docs.forge.com/administration/config-cheat-sheet#metrics-metrics
// Show issue by repository metrics with format git_issues_by_repository{repository="org/repo"} 5.
// Requires ENABLED_ISSUE_BY_REPOSITORY set to true.
showIssuesByRepository: true,
// Show graphs for issue by label metrics with format git_issues_by_label{label="bug"} 2.
// Requires ENABLED_ISSUE_BY_LABEL set to true.
showIssuesByLabel: true,
showIssuesOpenClose: true,
// add or remove metrics from dashboard
statMetrics:
[
{
name: 'git_organizations',
description: 'Organizations',
},
{
name: 'git_teams',
description: 'Teams',
},
{
name: 'git_users',
description: 'Users',
},
{
name: 'git_repositories',
description: 'Repositories',
},
{
name: 'git_milestones',
description: 'Milestones',
},
{
name: 'git_stars',
description: 'Stars',
},
{
name: 'git_releases',
description: 'Releases',
},
]
+
if c.showIssuesOpenClose then
[
{
name: 'git_issues_open',
description: 'Issues opened',
},
{
name: 'git_issues_closed',
description: 'Issues closed',
},
] else
[
{
name: 'git_issues',
description: 'Issues',
},
],
//set this for using label colors on graphs
issueLabels: [
{
label: 'bug',
color: '#ee0701',
},
{
label: 'duplicate',
color: '#cccccc',
},
{
label: 'invalid',
color: '#e6e6e6',
},
{
label: 'enhancement',
color: '#84b6eb',
},
{
label: 'help wanted',
color: '#128a0c',
},
{
label: 'question',
color: '#cc317c',
},
],
},
}