About Exposing TimesTen Operator Metrics

By default, the TimesTen Operator automatically exposes metrics about its own functionality and the status of TimesTenClassic objects to Prometheus or any other scraping mechanism. There are default behaviors as well as options for exposing these metrics. Although we recommend accepting the default behaviors, you can decide what works best for your environment.

The operator.yaml YAML manifest file sets default environment variables for TimesTen Operator metrics. For example:

vi operator.yaml

...
spec:
  ...
    spec:
      ...
          ports:
          - name: probes
            containerPort: 8081
            protocol: TCP
          - name: metrics
            containerPort: 8080
            protocol: TCP
      ...
          env:
            ...
            - name: EXPOSE_METRICS
              value: "1"
            - name: METRICS_SCHEME
              value: "https"
            - name: EXPOSE_PROBES
              value: "1"
            - name: CREATE_SERVICEMONITOR
              value: "1"
 ...

The following environment variables set default values for TimesTen Operator metrics:

  • EXPOSE_METRICS: A value of "1" indicates that TimesTen Operator metrics are exposed.

  • METRICS_SCHEME: A value of "https" indicates TimesTen Operator metrics are exposed using https.
  • EXPOSE_PROBES: A value of "1" indicates that TimesTen Operator probes are exposed.

  • CREATE_SERVICEMONITOR: A value of "1" indicates that the TimesTen Operator creates a ServiceMonitor object.

For more information about TimesTen Operator metrics, see Expose Metrics from the TimesTen Kubernetes Operator and TimesTen Kubernetes Operator Environment Variables.