14 lines
424 B
TypeScript
14 lines
424 B
TypeScript
import dashboard from '../../../../monitoring/grafana/harbor-gateway.json' with { type: 'json' };
|
|
|
|
export const grafanaDashboardJson = JSON.stringify(dashboard, null, 2);
|
|
|
|
export function prometheusScrapeConfig(controlHost: string) {
|
|
return `scrape_configs:
|
|
- job_name: harbor_gateway
|
|
scrape_interval: 30s
|
|
scrape_timeout: 3s
|
|
metrics_path: /metrics
|
|
static_configs:
|
|
- targets: ["${controlHost}"]`;
|
|
}
|