Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM openjdk:11-jre-slim

ENTRYPOINT ["java", "-jar", "/usr/share/observability-exporter.jar"]

ADD target/observability-exporter-0.1.0.jar /usr/share/observability-exporter.jar
18 changes: 18 additions & 0 deletions Logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Logs Exporter

###Log export entries contain the following elements:

- `context`: Overall context of log entry
- `logdesc`: Overall description of log entry
- `timestampfield`: Field used to filter the time range for queries logged
- `request`: The query used to retrieve log information. Values are logged in the format `[fieldname]=[fieldvalue]`

The following is an example entry.

```toml
[[log]]
context = "orderpdb_alertlogs"
logdesc = "alert logs for order PDB"
timestampfield = "ORIGINATING_TIMESTAMP"
request = "select ORIGINATING_TIMESTAMP, MODULE_ID, EXECUTION_CONTEXT_ID, MESSAGE_TEXT from V$diag_alert_ext"
```
26 changes: 0 additions & 26 deletions Makefile

This file was deleted.

23 changes: 23 additions & 0 deletions Metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Metrics Exporter

###Metrics export entries contain the following elements:

- `context`: Overall context of log entry
- `metricsdesc`: Description of metric that maps to values obtained via `request`
- `labels`: Field used to create labels for metric that maps to values obtained via `request`
- `request`: The query used to retrieve metric information.

The following are example entries both without and with labels.

```toml
[[metric]]
context = "context_no_label"
request = "SELECT 1 as value_1, 2 as value_2 FROM DUAL"
metricsdesc = { value_1 = "Simple example returning always 1.", value_2 = "Same but returning always 2." }

[[metric]]
context = "context_with_labels"
labels = [ "label_1", "label_2" ]
request = "SELECT 1 as value_1, 2 as value_2, 'First label' as label_1, 'Second label' as label_2 FROM DUAL"
metricsdesc = { value_1 = "Simple example returning always 1.", value_2 = "Same but returning always 2." }
```
Loading