Coder Social home page Coder Social logo

sw-samuraj / oci-sd Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 11.0 3.71 MB

Prometheus service discovery for OCI (Oracle Cloud Infrastructure)

License: BSD 3-Clause "New" or "Revised" License

Go 74.12% Makefile 0.44% HCL 19.71% Shell 3.94% Dockerfile 1.80%
oci prometheus service-discovery oracle-cloud-infrastructure oci-sd

oci-sd's Issues

output file permissions

Hello,is there an easy way to modify the file permissions of the output file. since the output file always have 600 rights, Prometheus is not able to read the output file. I have to change the permissions manually to get prometheus working. Is there something I can do beside execute every x minutes a cron job? :(

Terraform sample needs to be modernized

The terraform example needs to be updated to work with the latest version of terraform. In addition, need to update the version of prometheus, use modern OCI shapes (Flex), modern OS (OL8), and to handle starting the services under SELinux.

oci-sd crashes when instance doesn't have public ip

We got a situation that a returned Vnic doesn't have public ip.
As oci-sd crashes.
The Vnic looks like:
Vnic={
AvailabilityDomain=CMiL:US-ASHBURN-AD-1
CompartmentId=ocid1.tenancy.oc1...
Id=ocid1.vnic.oc1....
LifecycleState=AVAILABLE
SubnetId=ocid1.subnet.oc1.iad....
TimeCreated=2019-11-20 08:47:44.691 +0000 UTC
DefinedTags=map[]
DisplayName=ohad-instance-20191120-1046
FreeformTags=map[]
HostnameLabel=ohad-instance-20191120-1046
IsPrimary=true
MacAddress=XXX
NsgIds=[]
PrivateIp=XXX
PublicIp=
SkipSourceDestCheck=false }
Etag=3bb52290
OpcRequestId=XXX }

"\"__meta_oci_defined_tag_Oracle-Tags_CreatedBy\" is not a valid label name

There was a log like this.

Aug 4 02:17:13 prometheus prometheus: level=error ts=2020-08-04T02:17:13.312Z caller=file.go:323 component="discovery manager scrape" discovery=file msg="Error reading file" path =/home/user/oci-sd/oci-sd.json err="\"__meta_oci_defined_tag_Oracle-Tags_CreatedBy\" is not a valid label name"

I replaced "__meta_oci_defined_tag_Oracle-Tags_CreatedBy" with "__meta_oci_defined_tag_Oracle_Tags_CreatedBy" in oci-sd.json and ran Prometheus.
Same for "Oracle-Tags_CreatedOn".

Build Issues for Standalone

I'm trying to build the standalone version of oci-sd, but I'm getting build errors. I'm wondering if there was a dependency change that is breaking the build process.

make build
go: error loading module requirements

For reference, I'm building with go1.12.7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.