Skip to content

IBM/instana-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-custom-analyzer

This is an example of how to extend k8sgpt analyzer with a custom implementation. This enables you to run additional behaviours outside of Kubernetes or with different languages.

See the related tutorial

How to run

You will need to run this example locally. This example is hard coded to port 8085. e.g.

go run main.go

Trigger it through grpcurl. e.g.

❯ grpcurl --plaintext localhost:8085 schema.v1.AnalyzerService/Run
{
  "result": {
    "name": "diskuse",
    "error": [
      {
        "text": "Disk usage is 67"
      }
    ],
    "details": "Disk usage is 67"
  }
}

Calling from K8sGPT

When you have this service ready to go and running somewhere. Add it to the K8sGPT custom-analysis config

❯ cat ~/Library/Application\ Support/k8sgpt/k8sgpt.yaml
custom_analyzers:
  - name: Example
    connection:
      url: localhost
      port: 8085

Releases

No releases published

Packages

No packages published