Fix credentials for mysql
@@ -176,15 +176,15 @@ func (c *Node) PMMContainer(spec *api.PMMSpec, secrets string) corev1.Container
},
{
Name: "DB_HOST",
- Value: c.labels["app.kubernetes.io/instance"] + "-" + c.labels["app.kubernetes.io/component"],
+ Value: "localhost",
},
{
Name: "DB_PORT",
Value: "3306",
},
{
- Name: "DATA_SOURCE_NAME",
- Value: "monitor:IncyabLALj5zjidn0ri@(localhost:3306)",
+ Name: "DB_ARGS",
+ Value: "--query-source=perfschema",
},
}
ct.Env = append(ct.Env, pmmEnvs...)
