Accessing the controller event metrics

There are some goroutine pool metrics mentioned in the latest release.

I am keen to analyse them… how do you access the data?

Ant tips?

I’ll get someone to comment on this who’s configured the metrics lately. It’s not been something I’ve done myself. in the NetFoundry platform we send them to a file, that file is then shipped to kibana for ingest. that’s all done outside of openziti

1 Like

Ziti has a LOT of data that you can tap into, this example is perhaps a bit overkill, but it should demonstrate how to pick and choose certain namespaces if you want to create filters or drop certain data types to specific files. This would need to go into your controller config.

metrics:
  reportInterval: 1m

events:

  jsonLogger:
    subscriptions:
     - type: metrics
       metricFilter: "link.latency.*"
     - type: metrics
       sourceFilter: .*
       metricFilter: "(.*session.create.*)|(bolt.*)"
     - type: metrics
       sourceFilter: .*
       metricFilter: "/edge*"
     - type: metrics
       metricFilter: "ctrl.*"
    handler:
      type: file
      format: json
      path: /var/log/ziti/metrics.log
      maxsizemb: 1024
      maxbackups: 1

  edgeSessionLogger:
    subscriptions:
     - type: edge.sessions
       include:
        - created
    handler:
      type: file
      format: json
      path: /var/log/ziti/edgesessions.log
      maxsizemb: 1024
      maxbackups: 1

If you want everything for a given type, just add:

  jsonLogger:
    subscriptions:
     - type: metrics
    handler:
      type: file
      format: json
      path: /var/log/ziti/metrics.log
      maxsizemb: 1024
      maxbackups: 1

1 Like

very cool… I will play with this tomorrow… :slight_smile:

1 Like