Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix log metrics bug 491 #492

Merged
merged 4 commits into from
Feb 12, 2019

Conversation

zhangjianweibj
Copy link
Contributor

standard log level has seven types including:AUDIT,CRITICAL,DEBUG,INFO,TRACE,ERR,WARN.but monasca log metrics component only support warning and error types to transform to metrics(log.warn log.error).and user can not config that types.it is not a rational disign.

Copy link
Member

@matrixik matrixik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix, looks fine.

I have one request: add info about LOG_LEVEL to README in configuration section:
https://github.com/monasca/monasca-docker/tree/master/monasca-log-metrics#configuration

@zhangjianweibj
Copy link
Contributor Author

ok

Copy link
Member

@matrixik matrixik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to update file build.yml https://github.com/monasca/monasca-docker/blob/master/monasca-log-metrics/build.yml#L3
Change:
- tag: 0.0.1
to
- tag: 0.1.0

@@ -8,6 +8,7 @@ ENV CONFIG_TEMPLATE=true \
KAFKA_URI=kafka:9092 \
ZOOKEEPER_URI=zookeeper:2181 \
KAFKA_WAIT_FOR_TOPICS=log-transformed,metrics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing \ at the end. Without it Dockerfile is not working

@@ -21,6 +21,7 @@ Configuration
| `KAFKA_WAIT_FOR_TOPICS` | `log-transformed,metrics` | Topics to wait on at startup |
| `KAFKA_WAIT_RETRIES` | `24` | # of kafka wait attempts |
| `KAFKA_WAIT_DELAY` | `5` | # seconds to wait between attempts |
| `LOG_LEVEL` | `warning,error,fatal` | Metric name need to transformed be from log |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change description to: List all log levels converted to metrics

@@ -24,7 +24,7 @@ filter {
}

# drop logs with log level not in warning,error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace warning,error with LOG_LEVEL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,very thanks

@matrixik matrixik requested a review from adriancz January 25, 2019 13:05
Copy link
Member

@matrixik matrixik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this changes.

@matrixik matrixik merged commit 8b6d583 into monasca:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants