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

FCC 4.0.8: Include metrics option #256

Closed
4 tasks done
saschaknapp opened this issue Feb 15, 2024 · 1 comment · Fixed by #259
Closed
4 tasks done

FCC 4.0.8: Include metrics option #256

saschaknapp opened this issue Feb 15, 2024 · 1 comment · Fixed by #259
Assignees

Comments

@saschaknapp
Copy link
Contributor

saschaknapp commented Feb 15, 2024

Background:
It's possible to set up a monitoring environment for the Fiscal-Cloud-Connector. The FCC creates metrics that are then fetched by monitoring solutions like prometheus and can be visualized in grafana. The metrics need to be activated in the FCC. We have at least one customer who wants to set up FCC monitoring.

HowTo activate:
There are two options to activate the metrics:

  • At the time of installation/initialization of the FCC: For this the parameter "enable-components metrics" is available
    image

  • After the FCC installation/initialization the metrics can be activated by adding the following parameter to the run_fcc.bat -Dspring.profiles.active=metrics

It should be possible to activate the metrics in the scu configuration.

HowTo test:
You can test if the metrics work without having to set up prometheus by opening the following URL in your browser. If data is shown there, then the metrics are active:
localhost:20001/actuator/metrics/http.server.requests
Port can be different if a individual fccPort was configured

More info:
https://documentation.fiskal.cloud/md/fiskal_cloud_connector/fiskal_cloud_connector/#metrics
https://documentation.fiskal.cloud/md/fiskal_cloud_connector/fiskal_cloud_connector/#list-of-installer-parameters-for-unattended-mode

Tasks

  • Add boolean SCU parameter EnableFccMetrics to DeutscheFiskal and SwissbitCloud SCUs
  • If the SCU parameter is set to true, add Dspring.profiles.active=metrics parameter when starting the FCC
  • Update SCU parameter documentation on docs.fiskaltrust.cloud
  • Test if metrics are generated (as described above)
@saschaknapp
Copy link
Contributor Author

as discussed @TSchmiedlechner :)

@forsthug forsthug self-assigned this Feb 28, 2024
forsthug added a commit that referenced this issue Feb 28, 2024
forsthug added a commit that referenced this issue Feb 28, 2024
…cs-option

#256 - FCC 4.0.8: Include metrics option
@volllly volllly linked a pull request Feb 29, 2024 that will close this issue
4 tasks
@volllly volllly closed this as completed Feb 29, 2024
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 a pull request may close this issue.

3 participants