You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PROJECT config unmarshaling and ServiceMonitor template formatting
- Change ProjectConfig tags from json to yaml for correct unmarshaling
- Unmarshal directly into ProjectConfig struct instead of config.Config interface
- Fix fmt.Sprintf template to pass domain twice for both Service and ServiceMonitor labels
- Remove unused config import
- Tested plugin successfully generates correct Prometheus monitoring files
Copy file name to clipboardExpand all lines: docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1/scaffolds/internal/templates/prometheus/servicemonitor.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ type ServiceMonitorOptions func(*ServiceMonitor)
29
29
// WithDomain sets the domain for the ServiceMonitor
0 commit comments