Skip to content

Commit

Permalink
fix remotewrite url
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed May 27, 2024
1 parent b1df553 commit 276325f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/monitoring/prometheusagent/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func getPrometheusAgentRemoteWriteSecretName(cluster *clusterv1.Cluster) string
// buildRemoteWriteSecret builds the secret that contains the remote write configuration for the Prometheus agent.
func (pas PrometheusAgentService) buildRemoteWriteSecret(ctx context.Context,
cluster *clusterv1.Cluster) (*corev1.Secret, error) {
url := fmt.Sprintf(remoteWriteEndpointTemplateURL, pas.ManagementCluster.BaseDomain, cluster.Name)
url := fmt.Sprintf(remoteWriteEndpointTemplateURL, pas.ManagementCluster.BaseDomain)
password, err := GetMimirIngressPassword(ctx)
if err != nil {
return nil, errors.WithStack(err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/monitoring/prometheusagent/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
// servicePriorityLabel is the label used to determine the priority of a service.
servicePriorityLabel string = "giantswarm.io/service-priority"

remoteWriteEndpointTemplateURL = "https://mimir.%s/%s/api/v1/push"
remoteWriteEndpointTemplateURL = "https://mimir.%s/api/v1/push"
)

type RemoteWriteConfig struct {
Expand Down

0 comments on commit 276325f

Please sign in to comment.