Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clouddetail/metadata
https://github.com/clouddetail/metadata
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clouddetail/metadata
- Owner: CloudDetail
- License: apache-2.0
- Created: 2024-08-09T07:32:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:12:54.000Z (2 months ago)
- Last Synced: 2024-10-29T09:29:21.346Z (2 months ago)
- Language: Go
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metadata
一个用于采集/传输/查询元信息模块;
## 创建MetaSource实例
```golang
func main() {
cfg := createDefaultConfig()
ms := source.CreateMetaSourceFromConfig(cfg)
err := ms.Run()
if err != nil {
log.Panic(err)
}
}func createDefaultConfig() *configs.MetaSourceConfig {
return &configs.MetaSourceConfig{
HttpServer: &configs.HTTPServerConfig{
Port: 8080,
},
KubeSource: &configs.KubeSourceConfig{
KubeAuthType: "serviceAccount",
IsEndpointsNeeded: true,
},
Querier: &configs.QuerierConfig{
EnableQueryServer: true,
IsSingleCluster: true,
},
Exporter: &configs.ExporterConfig{
EnableFetchServer: true,
},
}
}
```## 数据源来源
数据源目前可以来自K8sAPIServer或者其他MetaSource实例
不同MetaSource实例之间支持通过HTTP请求以Pull/Push方式传输数据.