Class GrafanaLogsBackendBackendWithLogMirroringInJenkins
java.lang.Object
hudson.model.AbstractDescribableImpl<GrafanaLogsBackend>
io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackendBackendWithLogMirroringInJenkins
- All Implemented Interfaces:
ExtensionPoint,Describable<GrafanaLogsBackend>
Store pipeline logs both in Loki and in the Jenkins home directory. Visualization of logs is done retrieving logs
from the Jenkins home directory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
GrafanaLogsBackend.LokiOTelLogFormatNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
lokiOTelLogFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanActivate the log mirroring to disk in addition to activation of the OTel export of pipeline logs done by theGrafanaLogsBackend.getOtelConfigurationProperties()inthashCode()newLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider) Logs should be retrieved from the Jenkins home, not from LokiMethods inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
all, getBuildLogsVisualizationMessageTemplate, getBuildLogsVisualizationUrlTemplate, getDescriptor, getLokiOTelLogFormat, setLokiOTelLogFormat
-
Constructor Details
-
GrafanaLogsBackendBackendWithLogMirroringInJenkins
@DataBoundConstructor public GrafanaLogsBackendBackendWithLogMirroringInJenkins()
-
-
Method Details
-
newLogStorageRetriever
public LogStorageRetriever newLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider) Logs should be retrieved from the Jenkins home, not from Loki- Specified by:
newLogStorageRetrieverin classGrafanaLogsBackend- Returns:
null
-
getOtelConfigurationProperties
Activate the log mirroring to disk in addition to activation of the OTel export of pipeline logs done by theGrafanaLogsBackend.getOtelConfigurationProperties()- Overrides:
getOtelConfigurationPropertiesin classGrafanaLogsBackend
-
equals
-
hashCode
public int hashCode()
-