Skip to content

Commit

Permalink
fixes vmagent serviceScrape
Browse files Browse the repository at this point in the history
  • Loading branch information
f41gh7 committed Jul 27, 2021
1 parent e9faf93 commit 7bbbf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/vmagent_controller.go
Expand Up @@ -108,7 +108,7 @@ func (r *VMAgentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct

//create vmservicescrape for object by default
if !r.BaseConf.DisableSelfServiceScrapeCreation {
err := factory.CreateVMServiceScrapeFromService(ctx, r, svc, instance.MetricPath())
err := factory.CreateVMServiceScrapeFromService(ctx, r, svc, instance.MetricPath(), "http")
if err != nil {
reqLogger.Error(err, "cannot create serviceScrape for vmagent")
}
Expand Down

0 comments on commit 7bbbf2c

Please sign in to comment.