# Naming service ports

To be included in Cloud Service Mesh, service ports must be named, and the name must
include the port's protocol, for example:

```
apiVersion: v1
kind: Service
metadata:
  name: ratings
  labels:
    app: ratings
    service: ratings
spec:
  ports:
  - port: 9080
    name: http
```

The service port name can include a suffix in the following syntax:
`name: protocol[-suffix]`
where the square brackets indicate an optional suffix that must start with a
dash, for example:

```
kind: Service
metadata:
  name: myservice
spec:
  ports:
  - number: 3306
    name: mysql
  - number: 80
    name: http-web
```

For metrics to be displayed in the Google Cloud console, the service ports
must be named with one of the following protocols: `http`, `http2`, or `grpc`.
Service ports named with the `https` protocol are treated as`tcp`, and metrics
aren't displayed for those services.