Fix installation of Kubernetes metrics server by updating the URL
[osm/devops.git] / installers / charm / mysqld-exporter / src / charm.py
index 46588b9..153dbfd 100755 (executable)
@@ -209,7 +209,7 @@ class MysqlExporterCharm(CharmedOsmBase):
             config.image_pull_policy,
             run_as_non_root=config.security_context,
         )
-        container_builder.add_port(name=self.app.name, port=PORT)
+        container_builder.add_port(name="exporter", port=PORT)
         container_builder.add_http_readiness_probe(
             path="/api/health",
             port=PORT,